Mrs Jefferson is a great teacher. One of her strategies that helped her to reach astonishing results in the learning process is to have some fun with her students. At school, she wants to make an arrangement of her class to play a certain game with her pupils. For that, she needs to create the arrangement with **the minimum amount of groups that have consecutive sizes**.
Let's see. She has      ```14``` students. After trying a bit she could do the needed arrangement:
        ```[5, 4, 3, 2]```
- one group of  ```5``` students
- another group of      ```4``` students
- then, another one of  ```3``` 
- and finally, the smallest group of    ```2``` students.
As the game was a success, she was asked to help to the other classes to teach and show the game. That's why she desperately needs some help to make this required arrangements that make her spend a lot of time. 
To make things worse, she found out that there are some classes with some special number of students that is impossible to get that arrangement.
Please, help this teacher!
Your code will receive the number of students of the class. It should output the arrangement as an array with the consecutive sizes of the groups in decreasing order.
For the special case that no arrangement of the required feature is possible the code should output     ```[-1] ```
The value of n is unknown and may be pretty high because some classes joined to to have fun with the game.
You may see more example tests in the Example Tests Cases Box.
def shortest_arrang(n):
    # For odd n, we can always construct n with 2 consecutive integers.
    if n % 2 == 1:
        return [n//2 + 1, n//2]

    # For even n, n is the sum of either an odd number or even number of
    # consecutive positive integers. Moreover, this property is exclusive.

    for i in range(3, n // 2):
        if i % 2 == 1 and n % i == 0:
        # For odd i, if n / i is an integer, then the sequence, which has
        # odd length, is centered around n / i.
            return list(range(n//i + i//2, n//i - i//2 - 1, -1))
        elif i % 2 == 0 and n % i == i // 2:
        # For even i, if the remainder of n / i is 1/2, then the sequence
        # (even length) is centered around n / i.
            return list(range(n//i + i//2, n//i - i//2, -1))

    # If none of the above are satisfied, then n is a power of 2 and we cannot
    # write it as the sum of two consecutive integers.
    return [-1]

def shortest_arrang(n):
    # For odd n, we can always construct n with 2 consecutive integers.
    if n % 2 == 1:
        return [n//2 + 1, n//2]

    # For even n, n is the sum of either an odd number or even number of
    # consecutive positive integers. Moreover, this property is exclusive.

    for i in range(3, n // 2):
        if i % 2 == 1 and n % i == 0:
        # For odd i, if n / i is an integer, then the sequence, which has
        # odd length, is centered around n / i.
            return list(range(n//i + i//2, n//i - i//2 - 1, -1))
        elif i % 2 == 0 and n % i == i // 2:
        # For even i, if the remainder of n / i is 1/2, then the sequence
        # (even length) is centered around n / i.
            return list(range(n//i + i//2, n//i - i//2, -1))

    # If none of the above are satisfied, then n is a power of 2 and we cannot
    # write it as the sum of two consecutive integers.
    return [-1]
