def rearrange_digits(input_list):
    """
    Rearrange Array Elements so as to form two number such
    that their sum is maximum.

    Args:
       input_list(list): Input List
    Returns:
       (int),(int): Two maximum sums
    """
    input_list.sort(reverse=True)
    x = 0
    for i in range(0, len(input_list), 2):
        x = x * 10 + input_list[i]
    y = 0
    for i in range(1, len(input_list), 2):
        y = y * 10 + input_list[i]
    return [x, y]