#include<iostream>
using namespace std;
int main()
{
int n;
while (cin >> n)
std::cout << (1<<n) << endl;
// 1<<n就是2的n次方
return 0;
}
#include<iostream>
using namespace std;
int main()
{
int n;
while (cin >> n)
std::cout << (1<<n) << endl;
// 1<<n就是2的n次方
return 0;
}