x = int(input(""))
if -40 <= x <= 29:
    print("No")
elif 30 <= x <= 40:
    print("Yes") x = int(input("")) x int(input("")) int input("") input "" if -40 <= x <= 29:
    print("No")
elif 30 <= x <= 40:
    print("Yes") -40 <= x <= 29 -40 <= x -40 x 29 print("No") print "No" elif 30 <= x <= 40:
    print("Yes") 30 <= x <= 40 30 <= x 30 x 40 print("Yes") print "Yes" x = int(input("")) int(input("")) x
x = int(input(""))
if -40 <= x <= 29:
    print("No")
elif 30 <= x <= 40:
    print("Yes")