

def   UpperCamelCase(   lowercase_ = 1000				)      ->							int:





  '''simple docstring'''





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


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


def   UpperCamelCase(   lowercase_ = 100     ,   lowercase_ = 100				)      ->							int:





  '''simple docstring'''





  return max(
      sum(int(lowercase_				) for x in str(base**power				)				)
      for base in range(lowercase_				)
      for power in range(lowercase_				)				)


# Tests
if __name__ == "__main__":
    import doctest

    doctest.testmod()