#include <iostream>
using namespace std;
bool check(int k){
return ((k / 10) % 10) % 2 == 0;
}
int main() {
int n;
cin >> n;
if(n < 0) n *= -1;
for(int i = 100; i <= n; i++)
if(check(i))
cout << i << "\n";
#include <iostream>
using namespace std;
bool check(int k){
return ((k / 10) % 10) % 2 == 0;
}
int main() {
int n;
cin >> n;
if(n < 0) n *= -1;
for(int i = 100; i <= n; i++)
if(check(i))
cout << i << "\n";
}