您的位置:首页 > 其它

Four in a Row

2014-01-13 15:45 239 查看


Description

Given a positive integer, tell whether it is equal to the sum of four consecutive integers.



Input

A positive integer n ( n <2^31 ), each case will be on a separate line.

A zero (0) denotes the end of input.



Output

The phrase “ is not the sum of four consecutive integers.” 

or the phrase “ is the sum of four consecutive integers.”, 

where is the number in question.



Sample Input

2
5
41
82
0



Sample Output

2 is the sum of four consecutive integers.
5 is not the sum of four consecutive integers.
41 is not the sum of four consecutive integers.
82 is the sum of four consecutive integers.


代码

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: