#include<bits/stdc++.h>
using namespace std;
int main(){
int a,b,c=100;
while(c<=999){
b=c%10;
a=c/100;
if(a==b){
cout<<c<<endl;
}
c++;
}
}
/**************************************************************
Problem: 1701
User: toughuatao1
Language: C++
Result: Accepted
Time:13 ms
Memory:2072 kb
****************************************************************/