#include <iostream>
using namespace std;
int n, i, v[10005], p, q, nr;
int main()
{
cin >> n;
while(i < n)
{
i ++;
cin >> v[i];
}
i = n;
while(i >= 1 && nr <= 2)
{
if(v[i] % 2 == 1)
{
nr++;
if (nr == 1) p = v[i];
if (nr == 2) q = v[i];
}
i --;
}
if (nr < 2) cout << "Numere insuficiente";
else cout << q << " " << p;
return 0;
}