n = int(input()) def find(d): #d是天的编号 if d == n : return 1 #返回的数据是桃子的数量 return 2 * find(d+1) + 2 print(find(1))