package test;
import java.util.Scanner;
public class pratice {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner in = new Scanner (System.in) ;
String str =null ;
char [] word ;
while(in.hasNext()){
str = in.next() ;
word = str.toCharArray();
for(int i =1;i<word.length;i++){
System.out.print(Math.abs((int) word[i]-word[i-1]));
}
System.out.println();
}
in.close();
}
}