n = int(input())

if n % 2 == 1 and n > 4:
    y = n//2 - 1
    print(1, y)
else:
    print("NO")

b7de292b60ff36759c439fb1d96ae7325d7c92f8
<mask token>

<mask token>
if n % 2 == 1 and n > 4:
    y = n // 2 - 1
    print(1, y)
else:
    print('NO')

n = int(input())
if n % 2 == 1 and n > 4:
    y = n // 2 - 1
    print(1, y)
else:
    print('NO')

n = int(input())

if n % 2 == 1 and n > 4:
    y = n//2 - 1
    print(1, y)
else:
    print("NO")
