Problem2775--最大的奇数

2775: 最大的奇数

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 80  Solved: 61
[Status] [Submit] [Creator:]

Description

输入 n 个整数,输出其中最大的奇数。  

Input

第一行,一个整数 n(1 ≤ n ≤ 1000)。

第二行,n 个整数,两两之间以一个空格分隔。每个整数均为不超过 1000 的正整数,且至少存在一个奇数。  

Output

输出一个整数,表示 n 个数中最大的那个奇数。  

Sample Input Copy

5
3 6 2 5 8

Sample Output Copy

5

Source/Category