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: def main114():
      import numpy as np
  
      S = input()
      answer = 0
  
      digit1 = []
      digit2 = []
      digit3 = []
  
      for i in range(len(S)):
          digit1.append(abs(7 - int(S[i])))
          digit2.append(abs(5 - int(S[i])))
          digit3.append(abs(3 - int(S[i])))
  
      first = [
          i for i, x in enumerate(digit1) if x == min(digit1) and i < len(digit1) - 2
      ]
  
      if len(first) == 1:
          answer = (
              int(S[first[0]]) * 100 + int(S[first[0] + 1]) * 10 + int(S[first[0] + 2])
          )
  
      elif len(first) > 1:
          digit2_new = []
          for i in range(len(first)):
              digit2_new.append(digit2[first[i] + 1])
  
          second = [
              i
              for i, x in enumerate(digit2)
              if x == min(digit2_new) and i < len(digit2) - 1
          ]
          if len(second) == 1:
              answer = (
                  int(S[first[0]]) * 100 + int(S[second[0]]) * 10 + int(S[second[0] + 1])
              )
          elif len(second) > 1:
              digit3_new = []
              for i in range(len(second)):
                  digit3_new.append(digit3[second[i] + 1])
  
              third = [
                  i
                  for i, x in enumerate(digit3)
                  if x == min(digit3_new) and i < len(digit3)
              ]
              answer = int(S[first[0]]) * 100 + int(S[second[0]]) * 10 + int(S[third[0]])
  
      answer = abs(753 - answer)
      print(answer)
  
  
  main114()
  
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."}]