d = int(input())

if d >= 30:
  print("Yes")
else:
  print("No") d = int(input()) d int(input()) int input() input if d >= 30:
  print("Yes")
else:
  print("No") d >= 30 d 30 print("Yes") print "Yes" print("No") print "No" d = int(input()) int(input()) d
d = int(input())

if d >= 30:
  print("Yes")
else:
  print("No")