#T755. 奇数单增序列

奇数单增序列

Description

Given a sequence of positive integers with length N (not exceeding 500), extract all the odd numbers from it and output them in ascending order.

Input Format

The first line contains N;

The second line contains N positive integers, separated by spaces.

Output Format

Output the sequence of odd numbers in ascending order, separated by commas. It is guaranteed that there is at least one odd number.

10
1 3 2 6 5 4 9 8 7 10
1,3,5,7,9

Source

CodesOnline