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

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


