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