#include<iostream>
#include<iomanip>
#include<vector>
#include<string>
#include<cmath>
using namespace std;
int f(int a)
{
int b=1;
for (int i = 1; i <= a; i++)
{
b = b * 2;
}
return b;
}
int main()
{
int a, b;
cin >> b;
a = f(b);
cout << a;
return 0;
}