Goldbach's Conjecture

No attempts yetTime limit2sMemory limit256 MB

Problem

A natural number greater than 11 whose only divisors are 11 and itself is called a prime. For example, 55 is prime because it has no divisors other than 11 and 55, but 66 is not prime because 6=2×36 = 2 \times 3.

Goldbach's conjecture is a famous unsolved problem in number theory: it claims that every even number greater than 22 can be written as the sum of two primes. A number that can be written this way is called a Goldbach number, and an expression of an even number as a sum of two primes is called a Goldbach partition of that number. For example, 4=2+24 = 2 + 2, 6=3+36 = 3 + 3, 8=3+58 = 3 + 5, 10=5+510 = 5 + 5, 12=5+712 = 5 + 7, 14=3+11=7+714 = 3 + 11 = 7 + 7. Every even number at most 1000010000 has a Goldbach partition.

Given an even number nn greater than 22, write a program that outputs a Goldbach partition of nn. If more than one partition is possible, output the one whose two primes have the smallest difference.

Input

The first line contains the number of test cases TT. Each of the following test cases consists of a single line containing one even number nn.

Output

For each test case, output the two primes that make up the Goldbach partition of nn. Print the smaller prime first, separated from the other by a single space.

Constraints

  • 4n100004 \le n \le 10000