N = int(input()) if N == 3: print("Yes") print(1, 3, 2) print(2, 1, 3) else: print("No")