#include<iostream>
#include<cmath>
#include<cstdio>

using namespace std;

int main()
{
	int n;
	double  ans;

	cin >> n;

	if(n > 36){ans = 0;}
	else{ans = pow(4, 36 - n);}

	printf("%.0f\n", ans);

	return 0;
}