Загрузка данных
a=[0]*10 for i in range(10): a[i]=int(input()) s=int(input()) if a[s]>0: print("Да") else: print("Нет")