#include<stdio.h> int main() { int a,b,c; int t; int sum; while(scanf("%d",&t)!=EOF){ sum = 1; t=t-1; while(t--){ sum = (sum+1)*2; } printf("%d\n",sum); } return 0; }
Double click to view unformatted code.