record = input()
names = record.split(' ')
index = names.index('NiuNiu')
print(index)