P18086 [UKIEPC 2026] Inverse Sum

Description

Given an integer $n>1$ and the equation $$ \frac{1}{n}=\frac{1}{a}+\frac{1}{b}. $$ Find two distinct positive integers $a$ and $b$ that satisfy the equation and minimize $a+b$.

Input Format

The input consists of a single line containing an integer $n$ ($1

Output Format

Output the required values of $a$ and $b$ in increasing order.

Explanation/Hint

Translated by QwenWork