x = int(eval(input()))

ans = 'Yes'

if x < 30: ans ='No'

print(ans)

print(('No' if int(eval(input())) < 30 else 'Yes'))

x = int(eval(input()))
ans = "Yes"
if x < 30:
    ans = "No"
print(ans)

print(("No" if int(eval(input())) < 30 else "Yes"))

-x = int(eval(input())) -ans = "Yes" -if x < 30: -    ans = "No" -print(ans) +print(("No" if int(eval(input())) < 30 else "Yes"))