de = int(input())

if de >= 30:
    print("Yes")

else:
    print("No") de = int(input()) de int(input()) int input() input if de >= 30:
    print("Yes")

else:
    print("No") de >= 30 de 30 print("Yes") print "Yes" print("No") print "No" de = int(input()) int(input()) de
de = int(input())

if de >= 30:
    print("Yes")

else:
    print("No")