#include <iostream> using namespace std; int main() { string input; while (cin >> input) { string password = ""; for (int i = 1; i < 7; i++) { int distance = input[i] - input[i - 1]; password += to_string(abs(distance)); } cout << password << endl; } return 0; }