lst=input().split() x=input() t=0 for i in range(len(lst)): if x==lst[i]: print(i) t+=1 print('times:',t)