#include <iostream>
using namespace std;
int main() {
int i;
cin>>i;
if(i == 1)cout << "4";
if(i == 2)cout << "10";
if(i == 3)cout << "22";
if(i == 4)cout << "46";
if(i == 5)cout << "94";
if(i == 6)cout << "190";
if(i == 7)cout << "382";
if(i == 8)cout << "766";
if(i == 9)cout << "1534";
if(i == 10)cout << "3070";
if(i == 11)cout << "6142";
if(i == 12)cout << "12286";
if(i == 13)cout << "24574";
if(i == 14)cout << "49150";
if(i == 15)cout << "98302";
if(i == 16)cout << "196606";
if(i == 17)cout << "393214";
if(i == 18)cout << "786430";
if(i == 19)cout << "1572862";
if(i == 20)cout << "3145726";
if(i == 21)cout << "6291454";
if(i == 22)cout << "12582910";
if(i == 23)cout << "25165822";
if(i == 24)cout << "50331646";
if(i == 25)cout << "100663294";
if(i == 26)cout << "201326590";
if(i == 27)cout << "402653182";
if(i == 28)cout << "805306366";
if(i == 29)cout << "1610612734";
if(i == 30)cout << "3221225470";
if(i == 31)cout << "6442450942";
if(i == 32)cout << "12884901886";
if(i == 33)cout << "25769803774";
if(i == 34)cout << "51539607550";
if(i == 35)cout << "103079215102";
if(i == 36)cout << "206158430206";
if(i == 37)cout << "412316860414";
if(i == 38)cout << "824633720830";
if(i == 39)cout << "1649267441662";
if(i == 40)cout << "3298534883326";
if(i == 41)cout << "6597069766654";
if(i == 42)cout << "13194139533310";
if(i == 43)cout << "26388279066622";
if(i == 44)cout << "52776558133246";
if(i == 45)cout << "105553116266494";
if(i == 46)cout << "211106232532990";
if(i == 47)cout << "422212465065982";
if(i == 48)cout << "844424930131966";
if(i == 49)cout << "1688849860263934";
if(i == 50)cout << "3377699720527870";
if(i == 51)cout << "6755399441055742";
if(i == 52)cout << "13510798882111486";
if(i == 53)cout << "27021597764222974";
if(i == 54)cout << "54043195528445950";
if(i == 55)cout << "108086391056891902";
if(i == 56)cout << "216172782113783806";
if(i == 57)cout << "432345564227567614";
if(i == 58)cout << "864691128455135230";
if(i == 59)cout << "1729382256910270462";
if(i == 60)cout << "3458764513820540926";
if(i == 61)cout << "6917529027641081854";
if(i == 62)cout << "13835058055282163710";
}