2604: CTK13 奇数序列排序

Memory Limit:256 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

给定一个长度为N的正整数序列,请将其中的所有奇数取出,并按增序(从小到大)输出。

Input

共2行; 第1行是一个正整数 N(不大于500); 第2行有 N 个正整数(小于100,000),相邻两数之间用空格隔开。

Output

输出1行,为增序的奇数序列,两数之间以英文逗号分隔。题目数据保证至少有一个奇数。 注意:输出数据不得有多余的逗号。

Sample Input Copy

10
10 3 8 6 7 4 9 5 2 1

Sample Output Copy

1,3,5,7,9

HINT