#include<stdio.h>
#include<math.h>
int main()
{
    int a;
    while(scanf("%d",&a)!=EOF)
    {
        printf("%ld\n",(long)pow(2,a));
    }
return 0;
}