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")