n = 35
if n < 1:
print(1)
else:
a = 1
b = 5
for _ in range(2, n + 1):
a, b = b, b + a + 3
print(b)
96631265 n = 35
if n < 1:
print(1)
else:
a = 1
b = 5
for _ in range(2, n + 1):
a, b = b, b + a + 3
print(b)