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