n = int(input())
if n < 30:
  print("No")
else:
  print("Yes") n = int(input()) n int(input()) int input() input if n < 30:
  print("No")
else:
  print("Yes") n < 30 n 30 print("No") print "No" print("Yes") print "Yes" n = int(input()) int(input()) n
n = int(input())
if n < 30:
  print("No")
else:
  print("Yes")
