a = ' '.join(map(str, range(1, int(input()) + 1))) print("!", a, a, flush=True)