'''simple docstring'''






from collections import defaultdict






def  UpperCamelCase__					(					_lowercase    :				str   ,    _lowercase    :				str     )							->	bool:
  __UpperCAmelCase:					Dict		= first_str.lower().strip()
  __UpperCAmelCase:					List[Any]		= second_str.lower().strip()

  # Remove whitespace
  __UpperCAmelCase:					Optional[int]		= first_str.replace(""" """   ,    """"""     )
  __UpperCAmelCase:					Optional[int]		= second_str.replace(""" """   ,    """"""     )

  # Strings of different lengths are not anagrams
  if len(_A     ) != len(_A     ):
    return False

  # Default values for count should be 0
  __UpperCAmelCase:					Tuple		= defaultdict(_A     )

  # For each character in input strings,
  # increment count in the corresponding
  for i in range(len(_A     )     ):
    count[first_str[i]] += 1
    count[second_str[i]] -= 1

  return all(_count == 0 for _count in count.values()     )


if __name__ == "__main__":
    from doctest import testmod

    testmod()
    SCREAMING_SNAKE_CASE_	   =			input('Enter the first string ').strip()
    SCREAMING_SNAKE_CASE_	   =			input('Enter the second string ').strip()

    SCREAMING_SNAKE_CASE_	   =			check_anagrams(input_a, input_b)
    print(f"""{input_a} and {input_b} are {"" if status else "not "}anagrams.""")
'''simple docstring'''






def  UpperCamelCase__					(					_lowercase    :				list     )							->	list:
  if len(_lowercase     ) <= 1:
    return lst

  __UpperCAmelCase:					List[str]		= 1

  while i < len(_lowercase     ):
    if lst[i - 1] <= lst[i]:
      i += 1
    else:
      __UpperCAmelCase, __UpperCAmelCase:					Tuple		= lst[i], lst[i - 1]
      i -= 1
      if i == 0:
        __UpperCAmelCase:					List[str]		= 1

  return lst


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