a=int(input())
if a >= 30:
    print("Yes\n")
else:
    print("No\n") a=int(input()) a int(input()) int input() input if a >= 30:
    print("Yes\n")
else:
    print("No\n") a >= 30 a 30 print("Yes\n") print "Yes\n" print("No\n") print "No\n" a=int(input()) int(input()) a
a=int(input())
if a >= 30:
    print("Yes\n")
else:
    print("No\n")