



def   lowerCAmelCase__						(							_SCREAMING_SNAKE_CASE       :			list    ):
				"""simple docstring"""







				if len(_SCREAMING_SNAKE_CASE    ) <= 1:
								return lst

				__a       =		1

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

				return lst


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





import os

def   lowerCAmelCase__						(							):
				"""simple docstring"""







				__a       =		os.path.dirname(os.path.realpath(_SCREAMING_SNAKE_CASE    )    )
				__a       =		os.path.join(_SCREAMING_SNAKE_CASE				,     """triangle.txt"""    )

				with open(_SCREAMING_SNAKE_CASE    ) as f:
								__a       =		f.readlines()

				__a       =		[]
				for line in triangle:
								__a       =		[]
								for number in line.strip().split(""" """    ):
												numbers_from_line.append(int(_SCREAMING_SNAKE_CASE    )    )
								a.append(_SCREAMING_SNAKE_CASE    )

				for i in range(1				,     len(_SCREAMING_SNAKE_CASE    )    ):
								for j in range(len(a[i]    )    ):
												__a       =		a[i - 1][j] if j != len(a[i - 1]    ) else 0
												__a       =		a[i - 1][j - 1] if j > 0 else 0
												a[i][j] += max(_SCREAMING_SNAKE_CASE				,     _SCREAMING_SNAKE_CASE    )
				return max(a[-1]    )


if __name__ == "__main__":
						print(solution())
