s;main(k){for(;k="œÿöÎû"[getchar()%23%8];s=k?s+k-s%k*2:!printf("%d\n",s))k*=k>0?.3:~9;}