#include using namespace std; int main(){ string str; int count = 0; int tmp = 0; long long int check = 0; long long int plus = 1; bool flag = true; while(count != 10){ printf("%010lld\n",check); cin >> tmp >> str; if(flag){ count = tmp; flag = false; } if(count > tmp){ check -= plus; plus *= 10; }else if(count < tmp){ count = tmp; plus *= 10; } check += plus; } return 0; }