#include<stdio.h>
#include<string.h>
#include<stdlib.h>
int main()
{
    int n;
    while(scanf("%d",&n)!=EOF)
    {
        int s=1;
        for(int i=2;i<=n;i++)
        {
            s=(s+1)*2;
        }
        printf("%d\n",s);
    }
    //system("pause");
    return 0;
}

编辑器加载中...

posted on 2011-07-16 14:52  枫叶飘泪  阅读(265)  评论(0编辑  收藏  举报