i,j;main(x){for(;x=~getchar(x%3?~x%3?:i++:j++););i=!printf("%d",--i