Triangles from Matches#35

Triangles from Matches

1 second
122.174 megabytes
Medium
prb35

Kleptyk, known from the Match Model problem, decided to demonstrate his skills again. He began constructing triangles using matches.

What is the minimal number of matches needed to form triangles, if each side of a triangle is formed by a single match?

Input

The input contains a single integer (n < 2 \cdot 10^9).

Output

Print the minimal number of matches required to form triangles.

Examples

Example 1

Loading
Loading