
def 	SCREAMING_SNAKE_CASE__    (      __lowerCAmelCase							):

    if len(__lowerCAmelCase							) <= 1:
        return [tuple(__lowerCAmelCase							)]

    snake_case__						=				[]

    def generate(__lowerCAmelCase    ,		__lowerCAmelCase							):
        snake_case__						=				[0] * n
        res.append(tuple(__lowerCAmelCase							)							)

        snake_case__						=				0
        while i < n:
            if c[i] < i:
                if i % 2 == 0:
                    snake_case__						,					snake_case__						=				arr[i], arr[0]
                else:
                    snake_case__						,					snake_case__						=				arr[i], arr[c[i]]
                res.append(tuple(__lowerCAmelCase							)							)
                c[i] += 1
                snake_case__						=				0
            else:
                snake_case__						=				0
                i += 1

    generate(len(__lowerCAmelCase							)    ,		__lowerCAmelCase							)
    return res


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





from math import factorial





def 	SCREAMING_SNAKE_CASE__    (      __lowerCAmelCase = 100							):
    return sum(int(__lowerCAmelCase							) for x in str(factorial(__lowerCAmelCase							)							)							)


if __name__ == "__main__":
     print(solution(int(input('''Enter the Number: ''').strip())))



