n = int(input())

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

if n > 29:
  print("Yes")
else:
  print("No")