~/algor $ cat problems/sonlar-goldbax-juftligi
Goldbach pair
Easy
1000 ms
128 MB
33%
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.)
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