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

#SP0000123. Giả thuyết Goldbach (Goldbach's Conjecture)

HỌC THEO LỘ TRÌNH

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

1 lộ trình

Giả thuyết Goldbach (Goldbach's Conjecture)

Goldbach's Conjecture

Source: UVa

Version: Phuoc Hung OJ Extended

Problem Statement

Goldbach's conjecture states that every even integer greater than 22 can be expressed as a sum of two primes. Here, both primes must be odd.

Given an even integer nn, find odd primes aa and bb with a+b=na+b=n, a≤ba\le b. If several pairs exist, choose the one maximizing b−ab-a.

Input

One line containing the integer nn.

Output

Print one line in the exact format n = a + b, with one space on each side of = and +. If no such pair exists, print exactly Goldbach's conjecture is wrong..

Subtasks

  • Subtask 1 (20 points): 6≤n≤1006\le n\le 100; nn is even.
  • Subtask 2 (30 points): 6≤n≤300006\le n\le 30000; nn is even.
  • Subtask 3 (50 points): 6≤n≤9999986\le n\le 999998; nn is even.

Examples

Input

20

Output

20 = 3 + 17

Explanation

For n=20n=20, the odd-prime pairs are 3+173+17 and 7+137+13. Their differences are 1414 and 66, respectively. Since 14>614>6, select (3,17)(3,17) and print 20 = 3 + 17.