s;main(i){for(;read(0,&i,1);)s-=i%49%39;printf("%d",~s);}