#include <bits/stdc++.h> using namespace std; char s2[100000]; int main() { char s1[150]; cin >> s1; int top = 0; for (int i = 0; s1[i] != '\0'; i++) { if ((s1[i] >= 'A' && s1[i] <= 'Z') || (s1[i] >= 'a' && s1[i] <= 'z')) { s2[top++] = s1[i]; } else { while (s1[i] != '1') { s2[top++] = s1[i - 1]; s1[i] = s1[i] - 1; } } } s2[top] = '\0'; cout << s2; return 0; }