eolymp
bolt
Try our new interface for solving problems
Problems

Chessboard

Chessboard

The cells of the chessboard of size n x n are enumerated with positive integers from 1 to n2 as shown in the picture. Find the sum of integers on white cells. 4.jpg

Input

One even positive integer n (n103).

Output

Print the sum of integers on white cells.

Time limit 1 second
Memory limit 128 MiB
Input example #1
4
Output example #1
68
Source 2019 All-Ukrainian Olympiad, Zhitomyr region, ІІ stage