#include <stdio.h> int main() { int n,i,x=1; scanf("%d",&n); for(i=1;i<n;++i) x=(x+1)*2; printf("%d",x); }
Double click to view unformatted code.