Problems
10054 - Intersection Point
SUBMIT PROBLEM

Intersection Point

Time Limit: 0.5 sec

 

The Problem

In this problem, you will be given one integer number n as input. Write a simple program that print the number of intersection points in n x n grid.

 

 

In this picture the number of intersection points are 9 in 4 x 4 grid.

 

The Input

There are several lines of input in the input file. Each line contains one integer numbers n (0<n<100). Input is terminated by EOF.

 

The Output

For each line of input you have to print a line of output, this line contains an integer which is the number of intersection point in n x n grid.

 

Sample Input

4

3

 

Sample Output

9

4

 

 

 

 

Online Practice Contest 3 [School & College Level]

Problem Setter: Shahin ShamS