#include <string>
#include <iostream>
using namespace std;
string unescape(const string& s)
{
string res;
string::const_iterator it = s.begin();
while (it != s.end())
{
char c = *it++;
if (c == '\\' && it != s.end())
{
switch (*it++) {
case '\\': c = '\\'; break;
case 'n': c = '\n'; break;
case 't': c = '\t'; break;
// all other escapes
default:
// invalid escape sequence - skip it. alternatively you can copy it as is, throw an exception...
continue;
}
}
res += c;
}
return res;
}
int main()
{
string s;
cin >> s;
cout << unescape(s) << endl;
}
I2luY2x1ZGUgPHN0cmluZz4KI2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKc3RyaW5nIHVuZXNjYXBlKGNvbnN0IHN0cmluZyYgcykKewogIHN0cmluZyByZXM7CiAgc3RyaW5nOjpjb25zdF9pdGVyYXRvciBpdCA9IHMuYmVnaW4oKTsKICB3aGlsZSAoaXQgIT0gcy5lbmQoKSkKICB7CiAgICBjaGFyIGMgPSAqaXQrKzsKICAgIGlmIChjID09ICdcXCcgJiYgaXQgIT0gcy5lbmQoKSkKICAgIHsKICAgICAgc3dpdGNoICgqaXQrKykgewogICAgICBjYXNlICdcXCc6IGMgPSAnXFwnOyBicmVhazsKICAgICAgY2FzZSAnbic6IGMgPSAnXG4nOyBicmVhazsKICAgICAgY2FzZSAndCc6IGMgPSAnXHQnOyBicmVhazsKICAgICAgLy8gYWxsIG90aGVyIGVzY2FwZXMKICAgICAgZGVmYXVsdDogCiAgICAgICAgLy8gaW52YWxpZCBlc2NhcGUgc2VxdWVuY2UgLSBza2lwIGl0LiBhbHRlcm5hdGl2ZWx5IHlvdSBjYW4gY29weSBpdCBhcyBpcywgdGhyb3cgYW4gZXhjZXB0aW9uLi4uCiAgICAgICAgY29udGludWU7CiAgICAgIH0KICAgIH0KICAgIHJlcyArPSBjOwogIH0KICAKICByZXR1cm4gcmVzOwp9CgppbnQgbWFpbigpCnsKICBzdHJpbmcgczsKICBjaW4gPj4gczsKICBjb3V0IDw8IHVuZXNjYXBlKHMpIDw8IGVuZGw7Cn0=