#include
using namespace std;
int main()
{
const int N = 70;
int a[N];
for (int i = 0; i < N; i++)
cin >> a[i];
int m = 0;
for (int i = 0; i < N; i++)
if ((a[i] % 2 == 1) && (a[i] > 0) && ((m == 0) || (a[i] < m)))
m = a[i];
cout << m;</p>
return 0;
}