x=int(input())
if x>29:
    print("Yes")
else:
    print("No") x=int(input()) x int(input()) int input() input if x>29:
    print("Yes")
else:
    print("No") x>29 x 29 print("Yes") print "Yes" print("No") print "No" x=int(input()) int(input()) x
x=int(input())
if x>29:
    print("Yes")
else:
    print("No")