






'''simple docstring'''





import random






def    lowerCamelCase_     (    lowercase__				,     lowercase__				,     lowercase__):
 lowerCamelCase__  =     a[left_index]
 lowerCamelCase__  =     left_index + 1
 for j in range(left_index + 1				,     lowercase__):
  if a[j] < pivot:
   lowerCamelCase__  ,	lowerCamelCase__  =     a[i], a[j]
   i += 1
 lowerCamelCase__  ,	lowerCamelCase__  =     a[i - 1], a[left_index]
 return i - 1






def    lowerCamelCase_     (    lowercase__				,     lowercase__				,     lowercase__):
 if left < right:
  lowerCamelCase__  =     random.randint(lowercase__				,     right - 1)
  lowerCamelCase__  ,	lowerCamelCase__  =     (
      a[left],
      a[pivot],
  )  # switches the pivot with the left most bound
  lowerCamelCase__  =     partition(lowercase__				,     lowercase__				,     lowercase__)
  quick_sort_random(
      lowercase__				,     lowercase__				,     lowercase__)  # recursive quicksort to the left of the pivot point
  quick_sort_random(
      lowercase__				,     pivot_index + 1				,     lowercase__)  # recursive quicksort to the right of the pivot point






def    lowerCamelCase_     (    ):
 lowerCamelCase__  =     input("Enter numbers separated by a comma:\n").strip()
 lowerCamelCase__  =     [int(lowercase__) for item in user_input.split(",")]

 quick_sort_random(lowercase__				,     0				,     len(lowercase__))

 print(lowercase__)


if __name__ == "__main__":
 main()













'''simple docstring'''





from decimal import Decimal, getcontext
from math import ceil, factorial






def    lowerCamelCase_     (    lowercase__):

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

 lowerCamelCase__  =     precision
 lowerCamelCase__  =     ceil(precision / 14)
 lowerCamelCase__  =     426880 * Decimal(10005).sqrt()
 lowerCamelCase__  =     1
 lowerCamelCase__  =     13591409
 lowerCamelCase__  =     Decimal(lowercase__)
 for k in range(1				,     lowercase__):
  lowerCamelCase__  =     factorial(6 * k) // (factorial(3 * k) * factorial(lowercase__) ** 3)
  linear_term += 545140134
  exponential_term *= -262537412640768000
  partial_sum += Decimal(multinomial_term * linear_term) / exponential_term
 return str(constant_term / partial_sum)[:-1]


if __name__ == "__main__":
 __A							:							Dict  							=		50
 print(F"""The first {n} digits of pi is: {pi(n)}""")

