#t64. 输出满足条件的数

输出满足条件的数

Numbers Divisible by Both 6 and 10

Problem Description

Output, in order, all numbers among the given nn numbers that are divisible by both 66 and 1010.

Input Format

The first line contains a positive integer nn (1<n≤10001 < n \le 1000).

The second line contains nn consecutive integers, all within the int range.

Output Format

Output, in input order, the numbers that are divisible by both 66 and 1010, separated by a single space.

Sample Input

5
2 60 7 30 9

Sample Output

60 30