#include #include using namespace std; int main(){ string S; int a,b; cin >> S >> a >> b; while(!(S=="0" && !a && !b)){ for(size_t i=0;i1 && S[0] == '0') S = S.substr(1, S.size()-1); cout << S << "\n"; cin >> S >> a >> b; } return 0; }