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