#include <stdio.h>

int main()
{
    int n = 0;
    //多组输入
    while (~scanf("%d", &n))
    {
        printf("%d\n", 1 << n);
        getchar();
    }
    return 0;
}