logo AlgoBeat OnlineJudge
登录 注册

#203746. [CERC2014] Sums

内存限制:125 MiB 时间限制:2000 ms 标准输入输出
题目类型:VJudge(洛谷) 评测方式:VJudge
上传者: 匿名

题目描述

Given an integer , express it as the sum of at least two consecutive positive integers. For example:

If there are multiple solutions, output the one with the smallest possible number of summands.

输入格式

The first line of input contains the number of test cases . The descriptions of the test cases follow:

Each test case consists of one line containing an integer .

输出格式

For each test case, output a single line containing the equation in the format: N = a + (a+1) + ... + b as in the example. If there is no solution, output a single word IMPOSSIBLE instead.

样例

样例输入 1

3
8
10
24

样例输出 1

IMPOSSIBLE
10 = 1 + 2 + 3 + 4
24 = 7 + 8 + 9