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