📅  最后修改于: 2022-03-11 14:45:23.519000             🧑  作者: Mango
# lucky no codechef problem in python
for _ in range(int(input())):
a,b,c = list(map(int,input().split()))
if 7 in (a,b,c):
print('Yes')
else:
print("No")