#include <bits/stdc++.h>
#include <string.h>
#define pb push_back
#define mp make_pair
#define F first
#define S second
#define sz(x) (int)x.size()
#define str(x) (int)strlen(x)
#define all(x) x.begin(), x.end()
#define itr ::iterator
#define rt return
#define sf scanf
#define pf printf
#define bit __builtin_popcountll
#define forit(it,S) for(__typeof((S).begin()) it = (S).begin(); it != (S).end(); it++)
#define SABR inline ll IN(){ll x=0,ch=getchar(),f=1;while (!isdigit(ch)&&(ch!='-')&&(ch!=EOF)) ch=getchar();if (ch=='-'){f=-1;ch=getchar();}while (isdigit(ch)){x=(x<<1)+(x<<3)+ch-'0';ch=getchar();}return x*f;}inline void OUT(ll x){if (x<0) putchar('-'),x=-x;if (x>=10) OUT(x/10),putchar(x%10+'0');else putchar(x+'0');}
#define PI 3.14159265358979323846264338327950288419716939937510
using namespace std;
typedef long long ll;
typedef unsigned uns;
typedef pair <int, int> pi;
typedef vector <int> vi;
const int MX = (int) 1e6 + 17;
const int MOD = (int) 1e9 + 7;
const ll LINF = (ll) 1e18 + 7;
const int INF = (int) 999999999;
SABR
int n, k;
string zh;
string x, y;
string get(string x, string y)
{
int A = sz(x), B = sz(y), C = A + B;
vector <int> a(A + 100), b(B + 100), c(C + 100);
string ans = "";
/// if (x == "0" || y == "0") {ans = "0"; rt ans;}
int len = sz(x) + sz(y) + 1;
for (int i = sz(x) - 1, j = 0; i >= 0; i--, j++) a[j] = x[i] - 48;
for (int i = sz(y) - 1, j = 0; i >= 0; i--, j++) b[j] = y[i] - 48;
for (int i = 0; i < sz(x); i++)
{
for (int j = 0; j < sz(y); j++)
{
c[i + j] += a[i] * b[j];
}
}
for (int i = 0; i < len; i++)
{
c[i + 1] += c[i] / 10;
c[i] %= 10;
}
while (c[len] == 0) len--;
for (int i = len; i >= 0; i--) ans += (c[i] + '0');
// a.clear(), b.clear(), c.clear();
rt ans;
}
int main()
{
cin >> n;
if (n == 0) {cout << 1;rt 0;}
zh = "1";
for (int i = 1; i <= n; i++)
{
zh = get(zh, "2");
}
c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bmcgbmFtZXNwYWNlIHN0ZDsKIAp0eXBlZGVmIGxvbmcgbG9uZyBsbDsKdHlwZWRlZiB1bnNpZ25lZCB1bnM7CnR5cGVkZWYgcGFpciA8aW50LCBpbnQ+IHBpOwp0eXBlZGVmIHZlY3RvciA8aW50PiB2aTsKIApjb25zdCBpbnQgTVggPSAoaW50KSAxZTYgKyAxNzsKY29uc3QgaW50IE1PRCA9IChpbnQpIDFlOSArIDc7CmNvbnN0IGxsIExJTkYgPSAobGwpIDFlMTggKyA3Owpjb25zdCBpbnQgSU5GID0gKGludCkgOTk5OTk5OTk5OwogCiAKU0FCUgogCmludCBuLCBrOwpzdHJpbmcgemg7CiAKc3RyaW5nIHgsIHk7CiAKIAogCnN0cmluZyBnZXQoc3RyaW5nIHgsIHN0cmluZyB5KQp7CiAgICBpbnQgQSA9IHN6KHgpLCBCID0gc3ooeSksIEMgPSBBICsgQjsKICAgIHZlY3RvciA8aW50PiBhKEEgKyAxMDApLCBiKEIgKyAxMDApLCBjKEMgKyAxMDApOwogICAgc3RyaW5nIGFucyA9ICIiOwogICAgLy8vICAgIGlmICh4ID09ICIwIiB8fCB5ID09ICIwIikge2FucyA9ICIwIjsgcnQgYW5zO30KICAgIGludCBsZW4gPSBzeih4KSArIHN6KHkpICsgMTsKICAgIGZvciAoaW50IGkgPSBzeih4KSAtIDEsIGogPSAwOyBpID49IDA7IGktLSwgaisrKSAgYVtqXSA9IHhbaV0gLSA0ODsKICAgIGZvciAoaW50IGkgPSBzeih5KSAtIDEsIGogPSAwOyBpID49IDA7IGktLSwgaisrKSAgYltqXSA9IHlbaV0gLSA0ODsKIAogICAgZm9yIChpbnQgaSA9IDA7IGkgPCBzeih4KTsgaSsrKQogICAgewogICAgICAgIGZvciAoaW50IGogPSAwOyBqIDwgc3ooeSk7IGorKykKICAgICAgICB7CiAgICAgICAgICAgIGNbaSArIGpdICs9IGFbaV0gKiBiW2pdOwogICAgICAgIH0KICAgIH0KIAogICAgZm9yIChpbnQgaSA9IDA7IGkgPCBsZW47IGkrKykKICAgIHsKICAgICAgICBjW2kgKyAxXSArPSBjW2ldIC8gMTA7CiAgICAgICAgY1tpXSAlPSAxMDsKICAgIH0KICAgIHdoaWxlIChjW2xlbl0gPT0gMCkgbGVuLS07CiAKICAgIGZvciAoaW50IGkgPSBsZW47IGkgPj0gMDsgaS0tKSAgYW5zICs9IChjW2ldICsgJzAnKTsKICAgIC8vIGEuY2xlYXIoKSwgYi5jbGVhcigpLCBjLmNsZWFyKCk7CiAKICAgIHJ0IGFuczsKfQppbnQgbWFpbigpCnsKICAgIGNpbiA+PiBuOwogCiAgICBpZiAobiA9PSAwKSB7Y291dCA8PCAxO3J0IDA7fQogCiAgICB6aCA9ICIxIjsKICAgIGZvciAoaW50IGkgPSAxOyBpIDw9IG47IGkrKykKICAgIHsKICAgICAgICB6aCA9IGdldCh6aCwgIjIiKTsKICAgIH0KIAogICAgY291dCA8PCB6aDsKICAgIHJ0IDA7Cn0=