#54792: python解


skull964460@gmail.com (螢光)


n=input()
s=""
for i in range(6):
  a=str(abs(ord(n[i])-ord(n[i+1])))
  s+=a
print(s)