#include <iostream> using namespace std; int main() { int i; for(i=100;i<1000;i++) { if(i%111==0) cout<<i<<endl; } return 0; }