import sys input = sys.stdin.readline from random import shuffle K=int(input()) LIST=list(range(1,2**K)) shuffle(LIST) def height(LIST): H=[0]*(len(LIST)+1) LEFT=[-1]*(len(LIST)+1) RIGHT=[-1]*(len(LIST)+1) for i in range(1,len(LIST)): now=0 h=1 while True: if LIST[i]