import sys import math def Q(nums): out = "? " for num in nums: out += str(num) + " " print(out[:len(out)-1]) sys.stdout.flush() def A(nums): out = "! " for num in nums: out += str(num) + " " print(out[:len(out)-1]) sys.stdout.flush() n = int(input()) n*=2 array = [0]*n for i in range(int(n/2)): array[i] = i+1 for count in range(n): off = ((count%2)) Q([0] + array[off:] if off == 1 else array) res = list(map(str, input().split())) for j in range(math.ceil(n/2.0)): if res[j] == ">" and array[2*j+1+off] != 0: array[2*j+off], array[2*j+1+off] = array[2*j+1+off], array[2*j+off] A(array)