x = int(input().rstrip())
if x >= 30:
  print("Yes")
else:
  print("No") x = int(input().rstrip()) x int(input().rstrip()) int input().rstrip() ().rstrip () input rstrip if x >= 30:
  print("Yes")
else:
  print("No") x >= 30 x 30 print("Yes") print "Yes" print("No") print "No" x = int(input().rstrip()) int(input().rstrip()) x
x = int(input().rstrip())
if x >= 30:
  print("Yes")
else:
  print("No")