N = int(input()) count = 1 s = 1 while count < N - 1: s = s + s + 1 count = count + 1 print(s)