'''simple docstring'''

from decimal import Decimal, getcontext
from math import ceil, factorial
def 			__UpperCamelCase       (   UpperCAmelCase     ):

 if not isinstance(UpperCAmelCase		,     UpperCAmelCase     ):
  raise TypeError('''Undefined for non-integers'''     )
 elif precision < 1:
  raise ValueError('''Undefined for non-natural numbers'''     )

 lowercase__				:    Tuple  =					precision
 lowercase__				:    Union[str, Any]  =					ceil(precision / 14     )
 lowercase__				:    Tuple  =					42_6880 * Decimal(1_0005     ).sqrt()
 lowercase__				:    int  =					1
 lowercase__				:    int  =					1359_1409
 lowercase__				:    List[Any]  =					Decimal(UpperCAmelCase     )
 for k in range(1		,     UpperCAmelCase     ):
  lowercase__				:    str  =					factorial(6 * k     ) // (factorial(3 * k     ) * factorial(UpperCAmelCase     ) ** 3)
  linear_term += 5_4514_0134
  exponential_term *= -26_2537_4126_4076_8000
  partial_sum += Decimal(multinomial_term * linear_term     ) / exponential_term
 return str(constant_term / partial_sum     )[:-1]


if __name__ == "__main__":
  __a: List[Any]          =   50
  print(F'The first {n} digits of pi is: {pi(n)}')


'''simple docstring'''

def 			__UpperCamelCase       (   UpperCAmelCase     ):
 lowercase__				:    Optional[int]  =					1
 for i in range(1		,     num + 1     ):
  fact *= i
 return fact
def 			__UpperCamelCase       (   UpperCAmelCase     ):
 lowercase__				:    Optional[Any]  =					0
 while number > 0:
  lowercase__				:    str  =					number % 10
  sum_of_digits += last_digit
  lowercase__				:    List[str]  =					number // 10  # Removing the last_digit from the given number
 return sum_of_digits
def 			__UpperCamelCase       (   UpperCAmelCase = 100     ):
 lowercase__				:    Optional[int]  =					factorial(UpperCAmelCase     )
 lowercase__				:    Dict  =					split_and_add(UpperCAmelCase     )
 return result


if __name__ == "__main__":
  print(solution(int(input("""Enter the Number: """).strip())))

