#include <bits/stdc++.h>
using namespace std;
int main() {
int n;
scanf("%d", &n);
int ans = 1;
while (--n) ans = (ans + 1) * 2;
printf("%d", ans);
return 0;
}
#include <bits/stdc++.h>
using namespace std;
int main() {
int n;
scanf("%d", &n);
int ans = 1;
while (--n) ans = (ans + 1) * 2;
printf("%d", ans);
return 0;
}