#include using namespace std; int main(){ string S; cin>>S; int cnt; cnt = 0; for(auto s:S)cnt+=(s=='Y'); cout<