This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
n= int (input())
x= []
for i in range(n):
x.append(input().split()[0])
# 0表示只保留第一个元素,舍弃后两个
s= input()
if(s==x[i]):
print(i,end=" ")