#P316. 【例54.1】 奇数单增序列

【例54.1】 奇数单增序列

Description

Given a sequence of positive integers of length NN (not exceeding 500500), where each integer's value does not exceed NN, please extract all odd numbers and output them in ascending order.

Input Format

Two lines:
Line 1 contains NN;
Line 2 contains NN positive integers separated by spaces.

Output Format

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

Sample

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