now = int(input())

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

if now <30:
  print("No")
 
else:
  print("Yes")