Tasks:
 
Task DescriptionDiscussion (0)
Task :: Mirela
Small Mirela is in love with the hexagon. She loves to draw them in a circle, and notes that in each following round of the draft, which has six hexagonal rather than in previous. Mirela first draft of a hexagon, then around him, six new and continues to draw new hexagonal some of those who had already draw. In the first step, the draft is only one hexagon, and in each next step line layer of hexagonal drawn before.


After Mirela make N steps of drawing, you know What is the total hexagonal drawing.

INPUT:
Natural number N (1 ≤ N ≤ 70) - the number of drawing steps.

OUTPUT:
Total number of drawn hexagonal.


Example: 1.

3
19



Example: 2.

7
127

Submit Solution
:
:
Available Languages
Task info
Name:Mirela
Time:0.1 sec.
Memory:4 MB
#Tests:6
AddedBy: matteo123
Source:HSIN
Task Ratings
Difficulty:

2 (38 votes)
Quality:

3.1 (30 votes)
Acceptance Rate
Recent Submissions
Fastest Solutions
UserTime
FilipKeri 0 s.
drugsale 0 s.
oduleodule 0 s.
Martin 0 s.
Nindza 0 s.
dario-dsa 0 s.
mjengic 0 s.
Lovro-lpa 0 s.
Asmirasmir 0 s.
pedja1 0 s.
Solved By