Problems
353 - Summation
SUBMIT PROBLEM

Summation

Time Limit: 1 sec

 

The Problem

There are 4 squares is drawn. The lengths of squares are consecutive integers. Suppose if first one length is 1 then the odd consecutive series is 1, 3, 5 and 7 which are the lengths of second, third and fourth respectively and if first one length is 2 then the even consecutive series is 2, 4, 6 and 8 which are the lengths of second, third and fourth respectively.

If we make a sum of all the areas can you tell what will be result?

 

The Input

The input file contains several lines. Each line contains a single integer represents the length, L (L<=100) of first square. If L is an odd number then the series will be a consecutive odd number series and if it’s an even number then the series will be an even number series. Input is terminated by end of file (EOF)

 

The Output

For each line of input output will show the summation of squares in a separate line.

 

Sample Input

1

100

 

Sample Output

84

42456

 

 

 

 

Problem Setter: Samia Safa Ahmed