#include #include int main() { long a,binary=0,p; scanf("%ld\n",&p); a=pow(2,p)-1; while(a>0){ binary += ( a % 2 ); a /= 2; } printf("%ld\n",binary); return 0; }