
from __future__ import annotations



def       __lowerCAmelCase      (						A       ,     A    ):
	if nth_term == "":
		return [""]
	UpperCAmelCase_       				=			int(A    )
	UpperCAmelCase_       				=			int(A    )
	UpperCAmelCase_       				=			[]
	for temp in range(int(A    )    ):
		series.append(F"1 / {pow(temp + 1       ,     int(A    )    )}" if series else "1"    )
	return series


if __name__ == "__main__":
				import doctest

				doctest.testmod()

				_a:    Optional[Any] 							=			int(input("""Enter the last number (nth term) of the P-Series"""))
				_a:    Any 							=			int(input("""Enter the power for  P-Series"""))
				print("""Formula of P-Series => 1+1/2^p+1/3^p ..... 1/n^p""")
				print(p_series(nth_term, power))


def       __lowerCAmelCase      (						A    ):
	if len(A    ) <= 1:
		return lst

	UpperCAmelCase_       				=			1

	while i < len(A    ):
		if lst[i - 1] <= lst[i]:
			i += 1
		else:
			UpperCAmelCase_				,   UpperCAmelCase_       				=			lst[i], lst[i - 1]
			i -= 1
			if i == 0:
				UpperCAmelCase_       				=			1

	return lst


if __name__ == "__main__":
				_a:    List[Any] 							=			input("""Enter numbers separated by a comma:\n""").strip()
				_a:    Optional[int] 							=			[int(item) for item in user_input.split(""",""")]
				print(gnome_sort(unsorted))