1613: 奇数单增序列

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:9 Solved:7

Description

给定一个长度为N (不大于500) 的正整数序列,请将其中的所有奇数取出,并按升序输出。

Input

共2行:第1行为N; 第2行为 N个正整数,其间用空格间隔。

Output

增序输出的奇数序列,数据之间以逗号间隔。数据保证至少有一个奇数。

Sample Input Copy

10
1 3 2 6 5 4 9 8 7 10

Sample Output Copy

1,3,5,7,9

Source/Category