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