import sys


a=input().split()
print(a.index('NiuNiu'))