SP20327 BOI02TRI - Triangles

Description

There are given n isosceles right triangles on a plane. Each triangle can be described by three integers x,y,m (m>0). Vertices of such a triangle are points which have coordinates (x;y), (x+m;y) and (x; y+m). Write a program which calculates the total area covered by triangles.

Input Format

The first line of the input contains one positive integer n (n

Output Format

On the first line of the output one number with exactly one digit after decimal point must be written – the total area covered by triangles.