using System;
public class Program
{
public static void Main()
//Damaris Castrellón
int a,b;
a=4;
Console.WriteLine("4, 13, 31, 67... What position of the series you would like to know.");
b=int.Parse(Console.ReadLine());
for(int i=2; i<=b; i++)
a=2*a+5;
}
Console.WriteLine(a);