#include using namespace std; signed main(){ for( int i = 0; i < 1000; ++i ){ string s; for( int x = i; x; x /= 10 ) s += ( char ) ( x % 10 ); while( s.size() < 3 ) s += "0"; reverse( s.begin(), s.end() ); cout << s << endl; int flag = 0; while( cin >> s ){ flag = 1; } if( not flag ) break; } return 0; }