output_description: If Takahashi's growth will be celebrated, print `YES`; if it will not, print
  `NO`.
  
  * * *
input_description: Input is given from Standard Input in the following format:
  
      
      
      X
attempt: n = input()
  N = int(n)
  
  a = int((n[-3:]))
  
  y = 0
  if a >= 753:
      x = 6
  elif a >= 735:
      x = 5
  elif a >= 573:
      x = 4
  elif a >= 537:
      x = 3
  elif a >= 375:
      x = 2
  elif a >= 357:
      x = 1
  elif a < 356:
      x = 0
  
  for i in range(0, len(n) - 3):
      if int(n[i]) == 0:
          y = y
      elif int(n[i]) >= 7:
          y += (len(n) - i) * 3 - 9
      elif int(n[i]) >= 5:
          y += (len(n) - i) * 3 - 10
      elif int(n[i]) >= 3:
          y += (len(n) - i) * 3 - 11
      elif int(n[i]) == 2 or 1:
          y += (len(n) - i) * 3 - 12
  
  print(x + y)
  
problem_description: Statement
  
   _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a
  certain country to celebrate the growth of seven-, five- and three-year-old
  children.
  
  Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San
  this time?
samples: [{"input": "5", "output": "YES\n    \n\nThe growth of a five-year-old child will be celebrated.\n\n* * *"}, {"input": "6", "output": "NO\n    \n\nSee you next year."}]