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