#include<iostream>
#include <string>
int main(){
std::string s;
std::cin>>s;
for(int i=0; i<s.size()-1; ++i){
std::cout<<abs(s[i]-s[i+1]);
}