#include <iostream>
#include <cstring>
using namespace std;
int main() {
int n, x;
cin >> n;
int app[100] = {0};
for (int i = 0; i < n; i++) {
cin >> x;
if (x < 100)
app[x]++;
}
int parmic = -1, imparmare = -1;
for (int i = 10; i < 100; i += 2) {
if (app[i] == 0) {
parmic = i;
break;
}
}
for (int i = 99; i > 10; i -= 2) {
if (app[i] == 0) {
imparmare = i;
break;
}
}
if (parmic == -1 || imparmare == -1)
cout << "Nu exista\n";
else
cout << imparmare << " " << parmic << "\n";
return 0;
}