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