i;main(s){for(;i=~getchar()?:!printf("%d",-s);s-=i&1);}