#T552. 奇数单增序列

奇数单增序列

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

Translation

CodesOnline

(Note: "CodesOnline" is a proper noun/name and is typically kept in its original form in translations unless there's a specific reason to translate it. The translation here maintains the original term as it appears to be a brand or platform name.)