#include <iostream>
using namespace std;
signed main()
{
int n, sum = 0;
cin >> n;
for (int i = 1; i < 7; i++)
{
sum = (n + 2) * 2;
n = sum;
}
cout << sum;
return 0;
} //已AC
#include <iostream>
using namespace std;
signed main()
{
int n, sum = 0;
cin >> n;
for (int i = 1; i < 7; i++)
{
sum = (n + 2) * 2;
n = sum;
}
cout << sum;
return 0;
} //已AC