RETO3M11 - 3RETO 11 MARATÓN

Given an array of N values, determine which elements contain three digits and are multiples of 3.

Input

Number of elements in the array.

The elements in the array.

Output

The array elements that have three digits and are multiples of 3.

Example

Input:
5
55, 12, 300, 120, 16

Output:
300, 120

Added by:MARATON AFDM
Date:2015-09-28
Time limit:1s
Source limit:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:All except: ASM64 GOSU JS-MONKEY

hide comments
2015-09-28 23:32:37
5
55, 12, 300, 120
is invalid input as 5 inputs are mentioned but only 4 inputs are taken
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.