





def 	__lowerCamelCase							(UpperCAmelCase__     :							Any  ):
					SCREAMING_SNAKE_CASE    			=       len(UpperCAmelCase__  )
					while cur > 1:
										# Find the maximum number in arr
										SCREAMING_SNAKE_CASE    			=       arr.index(max(arr[0:cur]  )  )
										# Reverse from 0 to mi
										SCREAMING_SNAKE_CASE    			=       arr[mi::-1] + arr[mi + 1 : len(UpperCAmelCase__  )]
										# Reverse whole list
										SCREAMING_SNAKE_CASE    			=       arr[cur - 1 :: -1] + arr[cur : len(UpperCAmelCase__  )]
										cur -= 1
					return arr


if __name__ == "__main__":
							_lowerCamelCase					:   List[str]							=		input('''Enter numbers separated by a comma:\n''').strip()
							_lowerCamelCase					:   Tuple							=		[int(item) for item in user_input.split(''',''')]
							print(pancake_sort(unsorted))





def 	__lowerCamelCase							(UpperCAmelCase__     :							int  ):
					assert isinstance(UpperCAmelCase__      , UpperCAmelCase__  ), F"The input value of [n={number}] is not an integer"

					if number == 1:
										return 2
					elif number < 1:
										SCREAMING_SNAKE_CASE    			=       F"The input value of [n={number}] has to be > 0"
										raise ValueError(UpperCAmelCase__  )
					else:
										SCREAMING_SNAKE_CASE    			=       sylvester(number - 1  )
										SCREAMING_SNAKE_CASE    			=       num - 1
										SCREAMING_SNAKE_CASE    			=       num
										return lower * upper + 1


if __name__ == "__main__":
							print(f"""The 8th number in Sylvester's sequence: {sylvester(8)}""")




