var s:array[-20..9]of string;i,j:comp;c,d:char;begin repeat read(c);inc(j);i:=i-ord(c>d)+ord(c''))end.