PHƯỚC HƯNG OJ · THỬ THÁCH THUẬT TOÁN

#SP0000124. Các biểu diễn Goldbach (Goldbach's Conjecture)

HỌC THEO LỘ TRÌNH

Bài tập thuộc lộ trình

1 lộ trình

Các biểu diễn Goldbach (Goldbach's Conjecture)

Goldbach's Conjecture

Source: Kattis (NAQ 2013) — goldbach2

Version: Phước Hưng OJ Extended; one input file per judge run.

Problem Statement

Given an even integer xx, list all pairs of primes (p,q)(p,q) such that p+q=xp+q=x and p≤qp\le q, each pair once and in increasing order of pp. The NAQ 2013 multi-case format is adapted to one even integer per PHOJ run.

Input

One even integer xx.

Output

First print x has k representation(s); then print each pair as p+q without spaces.

Subtask

  • Subtask 1 (20 points): 4≤x≤1004\le x\le100, xx even.
  • Subtask 2 (30 points): 4≤x≤20004\le x\le2000, xx even.
  • Subtask 3 (50 points): 4≤x≤320004\le x\le32000, xx even.

Example

Input

26

Output

26 has 3 representation(s)
3+23
7+19
13+13

Explanation

The example follows the mathematical conditions and the specified output format.