//AC
#include <iostream>
#include <cstdlib>
#include <stdio.h>
#include <algorithm>
#include <math.h>
#include <string.h>
#include <queue>
#include <stack>
#include <vector>
#include <map>
#include <set>
typedef long long ll;
using namespace std;
int main(){
int n;
cin>>n;
int sum=1;
for (int i= 1; i<=n; i++) {
sum=sum*2;
}
printf("2^%d = %d\n",n,sum);
return 0;
}