def ask(i, x, j, y): print("?", i, x, j, y,flush=True) return input() == "Yes" n = int(input()) z = 1 if ask(z, 2*n, 2, 2*n): z = 2 if ask(z, 2*n, 3, 2*n): z = 3 y = z-1 if y == 0: y = 3 x = 6-y-z if ask(x, 2*n-1, y, 2*n-1): x, y = y, x ans = [x, y, y, z, x, z]*n print("!", *ans[::-1],flush=True)