while 1:k=input();print(["PHONY",3+len(k)]["VO"in k])