z = int(input())
if z <= 2:
    print("NO")
else:
    print("YES")
    print(f"1 {z-1}")

抽象就完事