Graderpractice for programmers

Back to 254275 OOP - Labs 1-5 Review

E. Sum to one

Problem

Write a program that inputs a number x and generates the sum of x + (x-1) + … + 1. The number x is greater than zero.

Examples

Input

3

Output

3 + 2 + 1 = 6

Input

6

Output

6 + 5 + 4 + 3 + 2 + 1 = 21

Submit your solution

java