Problem A: 两个胖子萌萌哒

Time Limit: 1 Sec Memory Limit: 512 MB

Description


Sample Input

3
1 3
2 3
3 3

Sample Output

16
100
240

HINT

以后面的输入输出样例为准