


def 							UpperCAmelCase_   (				__snake_case = 1000		)	->     int:







 """simple docstring"""


 _lowercase				 =[]
 _lowercase				 =[]
 _lowercase				 =3
 _lowercase				 =5
 _lowercase				 =1
 while True:
  _lowercase				 =z * temp
  if result < n:
   zmulti.append(lowercase_		)
   temp += 1
  else:
   _lowercase				 =1
   break
 while True:
  _lowercase				 =x * temp
  if result < n:
   xmulti.append(lowercase_		)
   temp += 1
  else:
   break
 _lowercase				 =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()