
Kleptyk decided to create a three-dimensional model of cubes using matches for the edges of the cubes. The length of the edge of each cube is equal to one match. He used matches to build a model of three cubes.
What is the minimum number of matches Kleptyk needs to build a model of cubes? The cubes must be arranged in the most optimal way.
All numbers in this problem do not exceed 2 \cdot 10^9.
The input contains one number — the number of cubes in the model.
Print the minimum number of matches required to build the model of cubes.
Example 1