package tw.LanYao.myproject.HomeWork;
import java.util.Scanner;
import java.util.Arrays;
public class CharNumber {
public static void main(String[] args) {
Scanner sca = new Scanner(System.in);
while (sca.hasNext()) {
String password = sca.nextLine();
int p1, p2, p3;
for (int i = 0; i < 6; i++) {
p1 = (int) password.charAt(i);
p2 = (int) password.charAt(i + 1);
p3 = p2 - p1;
System.out.print((int) Math.abs(p3));// P3的絕對值(不然會有負數)
}
System.out.print("\n");
}
}
}