//https://ncode.syosetu.com/n4830bu/304/ #include using namespace std; int main() { for (int i = 0;; i++) { cout << setw(3) << setfill('0') << i << endl; string s; cin >> s; if (s[0] == 'u') return 0; } }