


'''simple docstring'''







def _UpperCamelCase	(					__A = 1000   )							->		int:


      '''simple docstring'''



      UpperCamelCase__  =    []
      UpperCamelCase__  =    []
      UpperCamelCase__  =    3
      UpperCamelCase__  =    5
      UpperCamelCase__  =    1
      while True:
            UpperCamelCase__  =    z * temp
            if result < n:
                  zmulti.append(__A   )
                  temp += 1
            else:
                  UpperCamelCase__  =    1
                  break
      while True:
            UpperCamelCase__  =    x * temp
            if result < n:
                  xmulti.append(__A   )
                  temp += 1
            else:
                  break
      UpperCamelCase__  =    list(set(xmulti + zmulti   )   )
      return sum(__A   )


if __name__ == "__main__":
  print(F"""{solution() = }""")









'''simple docstring'''







from itertools import permutations







def _UpperCamelCase	(					)							->		Optional[int]:


      '''simple docstring'''



      UpperCamelCase__  =    list(map("".join				,      permutations("0123456789"   )   )   )
      return result[999999]


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





