s=a=raw_input() while 1:i=-1;exec"i-='Z'