#include #include #include using namespace std; int get() { int num; cin >> num; string str; cin >> str; return num; } int main(void) { string str = "0000000000"; cout << str << endl; int num = get(); if (num == 10) return 0; for (int i = 0; i < 10; ++i) { for (int j = 0; j < 9; ++j) { str[i]++; cout << str << endl; int n = get(); if (n == 10) return 0; if (n > num) { n = num; break; } } } return 0; }