Goldbach Pairs


Submit solution

Points: 100
Time limit: 1.0s
Memory limit: 256M

Author:
Problem types

For each even integer \(n\), list all pairs of primes \(p<q\) such that \(p+q=n\).

Input

The first line contains \(T\) followed by \(T\) even integers \(n\).

The input satisfies:

  • \(1 \le T \le 20\)
  • \(4 \le n \le 10^7\)
  • \(n is even.\)

Output

For each query, print one pair per line as p q, in increasing order of \(p\).

Example

Input
1
6
Output

Comments

There are no comments at the moment.