a[];main(i){for(;i=getchar()-10;a[i-91]++);*a/=2;*a=!printf("%d",a[15]<(i=a[13])?*a