#include <iostream>
#include <sstream>
#include <string>
using namespace std;
int main() {
string s("{10}{20}Hello World!");
stringstream iss(s);
string a;
int x, y;
iss.ignore(1, '{');
iss >> x;
iss.ignore(1, '}');
iss.ignore(1, '{');
iss >> y;
iss.ignore(1, '}');
getline(iss, a);
cout << a << endl << x << endl << y << endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3N0cmVhbT4KI2luY2x1ZGUgPHN0cmluZz4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBtYWluKCkgewoJc3RyaW5nIHMoInsxMH17MjB9SGVsbG8gV29ybGQhIik7CglzdHJpbmdzdHJlYW0gaXNzKHMpOwoJc3RyaW5nIGE7CglpbnQgeCwgeTsKCWlzcy5pZ25vcmUoMSwgJ3snKTsKCWlzcyA+PiB4OwoJaXNzLmlnbm9yZSgxLCAnfScpOwoJaXNzLmlnbm9yZSgxLCAneycpOwoJaXNzID4+IHk7Cglpc3MuaWdub3JlKDEsICd9Jyk7CiAgICBnZXRsaW5lKGlzcywgYSk7CiAgICBjb3V0IDw8IGEgPDwgZW5kbCA8PCB4IDw8IGVuZGwgPDwgeSA8PCBlbmRsOwoJcmV0dXJuIDA7Cn0=