




from collections import namedtuple

UpperCAmelCase__						:       List[Any]							=    namedtuple('from_to', 'from_ to')

UpperCAmelCase__						:       Any							=    {
    'atm': from_to(1, 1),
    'pascal': from_to(0.000_0098, 101325),
    'bar': from_to(0.98_6923, 1.0_1325),
    'kilopascal': from_to(0.0098_6923, 101.325),
    'megapascal': from_to(9.8_6923, 0.10_1325),
    'psi': from_to(0.06_8046, 14.6959),
    'inHg': from_to(0.033_4211, 29.9213),
    'torr': from_to(0.0013_1579, 760),
}


def 		_lowerCamelCase				(					UpperCamelCase					,     UpperCamelCase					,     UpperCamelCase							)			->		float:





  """simple docstring"""





  if from_type not in PRESSURE_CONVERSION:
    raise ValueError(
        F'Invalid \'from_type\' value: {from_type!r}  Supported values are:\n'
        + ', '.join(UpperCamelCase							)							)
  if to_type not in PRESSURE_CONVERSION:
    raise ValueError(
        F'Invalid \'to_type\' value: {to_type!r}.  Supported values are:\n'
        + ', '.join(UpperCamelCase							)							)
  return (
      value * PRESSURE_CONVERSION[from_type].from_ * PRESSURE_CONVERSION[to_type].to
  )


if __name__ == "__main__":
   import doctest

   doctest.testmod()






import math


def 		_lowerCamelCase				(					UpperCamelCase							)			->		int:





  """simple docstring"""





  return sum(int(UpperCamelCase							) for digit in str(UpperCamelCase							)							)


def 		_lowerCamelCase				(					UpperCamelCase = 30							)			->		int:





  """simple docstring"""





  _lowercase: int						     =    []
  for digit in range(2					,     100							):
    for power in range(2					,     100							):
      _lowercase: int						     =    int(math.pow(UpperCamelCase					,     UpperCamelCase							)							)
      if digit == digit_sum(UpperCamelCase							):
        digit_to_powers.append(UpperCamelCase							)

  digit_to_powers.sort()
  return digit_to_powers[n - 1]


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