Sum of four primes

For each n, print the lexicographically smallest non-decreasing quadruple of primes summing to n, or Impossible.

Medium6Number theoryBrute forceMathNo attempts yetTime limit2sMemory limit512 MB

Problem

Can every natural number be written as a sum of four primes? The answer is yes for every natural number of 8 or more, but David did not know that. He decided to run a program that hunts for a number which cannot be written as a sum of four primes.

A prime is a natural number that is divisible by exactly two distinct natural numbers. For example, 37 is divisible only by 1 and 37, so it is prime.

Given a natural number nn, find four primes whose sum is nn. Several answers can exist, so print only the one that comes first in lexicographic order once the four primes are listed in non-decreasing order.

Input

The input has several lines. Each line holds one natural number nn, where 1n100,000,0001 \le n \le 100{,}000{,}000. The input ends at the end of the file.

Output

Print one line for each input line. Among all primes p1p2p3p4p_1 \le p_2 \le p_3 \le p_4 whose sum is nn, take the one whose sequence (p1,p2,p3,p4)(p_1, p_2, p_3, p_4) is lexicographically smallest, and print the four numbers separated by single spaces. The same prime may be used more than once. If nn cannot be written as a sum of four primes, print Impossible. on that line.