#include <iostream>
using namespace std;
int main(){ char a, b, c, d, e, f, g; cin >> a >> b >> c >> d >> e >> f >> g; cout << abs(a-b) << abs(b-c) << abs(d-c) << abs(e-d) << abs(f-e) << abs(g-f) << endl; return 0;}