Problem C
Prinova
Brojko and Brojana are happily married with
Brojko and Brojana are expecting an addition to their family
and have to come up with a nice name for the little girl. They
have decided that the name will be an odd integer in
the range
More precisely, they seek an odd integer
is as large as possible.
Write a program that determines the name for the little girl.
Input
The first line contains an integer
The second line contains N distinct positive even integers,
the names of the boys. The integers will be less than
The third line contains the integers
Output
Output an integer, the name for the little girl. If there are multiple solutions, any one of them will be accepted.
Sample Input 1 | Sample Output 1 |
---|---|
3 2 6 16 20 50 |
49 |
Sample Input 2 | Sample Output 2 |
---|---|
3 2 6 16 3 15 |
11 |
Sample Input 3 | Sample Output 3 |
---|---|
3 2 6 16 1 7 |
5 |