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