/*_______________________ STARTER _______________________*/
#include <bits/stdc++.h>
#define ll long long
#define pb push_back
#define el cout << "\n"
#define ft first
#define sc second
#define all(x) (x).begin(), (x).end
#define pii pair <int,int>
#define on true
#define off false
#define skip continue;
using namespace std;
/*_______________________ SETTING _______________________*/
bool boost, file, multitest, preinput;
void booster()
{
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
}
void file_worker()
{
freopen("input.inp","r",stdin);
freopen("output.out","w",stdout);
}
/*_______________________ COMPARE _______________________*/
/*________________ ALL VARIABLE USE HERE ________________*/
string s;
int num;
/*_______________ SUPPORT PROGRAM GO HERE _______________*/
/*__________________ VOID CODE GO HERE __________________*/
void prepare_before_input()
{
}
void getinput()
{
cin >> s;
}
void solve()
{
for (int i = 0; i < s.size(); i ++)
{
if (s == '9')
{
num += (int)(s - '0') * 10 + (int)(s[i + 1] - '0');
cout << (char)num; i ++; num = 0;
}
else
{
num += (int)(s - '0') * 100 + (int)(s[i + 1] - '0') * 10 + (int)(s[i + 2] - '0');
cout << (char)num; i += 2; num = 0;
}
}
}
void setting()
{
if (boost == on)
booster();
if (file == on)
file_worker();
if (preinput == on)
prepare_before_input();
if (multitest == on)
{
int number_of_test;
cin >> number_of_test;
while (number_of_test --)
{
getinput();
solve(); el;
}
}
else
{
getinput();
solve();
}
}
/*__________________ MAIN CODE GO HERE __________________*/
int main()
{
boost = on;
file = off;
multitest = off;
preinput = off;
setting();
return 0;
}