def main(): P = int(input()) M = 2 ** P - 1 a = M b = [] for x in range(P - 1): b.append(a % 2) a = a // 2 total = 1 for x in range(P - 1): total += b[x] print(total) if __name__ == "__main__": main()