
'''simple docstring'''

def 		_UpperCAmelCase			(					_lowerCamelCase  :    int						)      ->  int:
  if not isinstance(_lowerCamelCase					, _lowerCamelCase						):
    _lowerCAmelCase    :					List[str]							=   f'Input value of [number={number}] must be an integer'
    raise TypeError(_lowerCamelCase						)
  if number < 1:
    raise ValueError("""Input must be a positive integer"""						)
  return number * (2 * number - 1)


if __name__ == "__main__":
     import doctest

     doctest.testmod()




'''simple docstring'''

def 		_UpperCAmelCase			(					_lowerCamelCase  :    int = 1_00						)      ->  int:
  _lowerCAmelCase    :					Dict							=   [[0 for _ in range(_lowerCamelCase						)] for _ in range(m + 1						)]
  for i in range(m + 1						):
    _lowerCAmelCase    :					List[str]							=   1

  for n in range(m + 1						):
    for k in range(1					, _lowerCamelCase						):
      memo[n][k] += memo[n][k - 1]
      if n > k:
        memo[n][k] += memo[n - k - 1][k]

  return memo[m][m - 1] - 1


if __name__ == "__main__":
     print(solution(int(input("""Enter a number: """).strip())))


