Skip to main content
LIVE CONTEST: ALGOR Contest: Round #4 (Special Challenge) is live now!

~/algor $ cat problems/sonlar-goldbax-juftligi

Goldbach pair

Easy 1000 ms 128 MB 33%
Share

You are given an even positive integer $n \ge 4$. Write it as a sum of two primes: $n = p + q$, $p \le q$, where $p$ and $q$ are primes. If there are several such decompositions, print the one with the smallest $p$. (Within the given limits such a decomposition always exists.)

The number split into a sum of two primes

Input

One even positive integer $n$.

Output

Two primes separated by a space: $p$ and $q$.

Note

$4 \le n \le 10^{6}$
$n$ is even

Examples

Input #1
28
Output #1
5 23
Input #2
4
Output #2
2 2

Sign in to submit a solution

Signing up is free and takes a minute.