import sys i=0 for c in sys.stdin.read(): if'Y'==c:print i i+=1