Олимпиадный тренинг

Задача 38696. Odd output


Given an array of N integers. Write a program that prints the odd elements of an array (that is, those elements that are odd numbers).

Input
First given number N — the number of elements in the array (1<=N<=100). Then, from a new line, space-separated N numbers — array elements. The array consists of integers, modulo not exceeding 100.
 
Output
It is necessary to output all odd elements of the array.
 
 
Examples
# Input Output
1 5
1 2 3 4 5
1 3 5