def get_data(): S = input().split("n") return S def main(): S = get_data() count = 0 print(S) if len(S) > 2: for i in range(len(S)-1): if S[i] == '' and S[i+1] != '': count += 1 else : count = 1 print(count) if __name__=="__main__": main()