#include <bits/stdc++.h>
using namespace std;
vector<int> ans(150, 0);
void mul()
{
int jw = 0;
for (int i = 0; i < 150; i++)
{
ans[i] *= 2;
ans[i] += jw;
if (ans[i] >= 10)
{
jw = ans[i] / 10;
ans[i] %= 10;
}
else
jw = 0;
}
}
int main()
{
int n;
cin >> n;
ans[0] = 1;
while (n--)
mul();
int i = 149;
while (ans[i] == 0)
i--;
for (; i >= 0; i--)
cout << ans[i];
return 0;
}