

'''simple docstring'''



def      a__ (						a__		):




     """simple docstring"""


     __SCREAMING_SNAKE_CASE						     =   [True for i in range(n + 1		)]
     __SCREAMING_SNAKE_CASE						     =   [i - 1 for i in range(n + 1		)]
     __SCREAMING_SNAKE_CASE						     =   []
     for i in range(2   ,					n + 1		):
          if is_prime[i]:
               primes.append(a__		)
          for j in range(0   ,					len(a__		)		):
               if i * primes[j] >= n:
                    break
               __SCREAMING_SNAKE_CASE						     =   False

               if i % primes[j] == 0:
                    __SCREAMING_SNAKE_CASE						     =   totients[i] * primes[j]
                    break

               __SCREAMING_SNAKE_CASE						     =   totients[i] * (primes[j] - 1)

     return totients


if __name__ == "__main__":
  import doctest

  doctest.testmod()









'''simple docstring'''



def      a__ (						):




     """simple docstring"""


     __SCREAMING_SNAKE_CASE						     =   1

     while True:
          if (
              sorted(str(a__		)		)
              == sorted(str(2 * i		)		)
              == sorted(str(3 * i		)		)
              == sorted(str(4 * i		)		)
              == sorted(str(5 * i		)		)
              == sorted(str(6 * i		)		)
          ):
               return i

          i += 1


if __name__ == "__main__":
  print(solution())






