#include <stdio.h>

int main() {
    int a, b=2;
    scanf("%d",&a);
   b=b<<a-1;
   printf("%d",b);
    return 0;                               
}