#include <iostream>
#include <string>
#include <sstream>
using namespace std;
int main()
{
string x;
while (cin >> x)
{
int a=0,b=0;
string y,z;
stringstream temp;
for (int i = 0; i < x.length(); i++)
{
a = ((int)x[1 + i] - int(x[0 + i]));
a = abs(a); //絕對值
temp << a;
temp >> z;
y = y + z;
temp.str("");
temp.clear();
}
y.erase(y.length() - 2, 2);
cout << y << endl;
}
}