






from math import sqrt


def     lowerCamelCase_	(      lowerCAmelCase:	int				)->		List[Any]:
  _snake_case   :				Dict														=	0
  for i in range(1    ,							int(sqrt(snake_case_				) + 1				)				):
    if n % i == 0 and i != sqrt(snake_case_				):
      total += i + n // i
    elif i == sqrt(snake_case_				):
      total += i
  return total - n


def     lowerCamelCase_	(      lowerCAmelCase:	Union[str, Any] = 1_00_00				)->		int:
  _snake_case   :				Optional[Any]														=	sum(
      i
      for i in range(1    ,							snake_case_				)
      if sum_of_divisors(sum_of_divisors(snake_case_				)				) == i and sum_of_divisors(snake_case_				) != i				)
  return total


if __name__ == "__main__":
      print(solution(int(str(input()).strip())))











def     lowerCamelCase_	(      lowerCAmelCase:	int				)->		list:
  _snake_case   :				List[Any]														=	int(lowerCAmelCase				)
  if n_element < 1:
    _snake_case   :				int														=	ValueError('a should be a positive number'				)
    raise my_error

  _snake_case   :				Union[str, Any]														=	[1]
  _snake_case							,					_snake_case							,					_snake_case   :				Any														=	(0, 0, 0)
  _snake_case   :				str														=	1
  while index < n_element:
    while hamming_list[i] * 2 <= hamming_list[-1]:
      i += 1
    while hamming_list[j] * 3 <= hamming_list[-1]:
      j += 1
    while hamming_list[k] * 5 <= hamming_list[-1]:
      k += 1
    hamming_list.append(
        min(hamming_list[i] * 2    ,							hamming_list[j] * 3    ,							hamming_list[k] * 5				)				)
    index += 1
  return hamming_list


if __name__ == "__main__":
      lowerCAmelCase_						   =    input("""Enter the last number (nth term) of the Hamming Number Series: """)
      print("""Formula of Hamming Number Series => 2^i * 3^j * 5^k""")
      lowerCAmelCase_						   =    hamming(int(n))
      print("""-----------------------------------------------------""")
      print(F"""The list with nth numbers is: {hamming_numbers}""")
      print("""-----------------------------------------------------""")




