a = list(input().split(' '))
# for idx,val in enumerate(a):
#     if val == "NiuNiu":
#         print(idx)
print(a.index("NiuNiu"))

或者直接index