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

#SP0000125. Bài toán tổng hai số nguyên tố (The Primary Problem)

HỌC THEO LỘ TRÌNH

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

1 lộ trình

Bài toán tổng hai số nguyên tố (The Primary Problem)

The Primary Problem

Source: UVa

Version: Phuoc Hung OJ Extended

Problem Statement

Given an integer n>3n>3, determine whether it is a sum of two primes.

If more than one pair (a,b)(a,b) satisfies a≤ba\le b and a+b=na+b=n, choose the pair maximizing b−ab-a. Equal primes are allowed, e.g. 4=2+24=2+2.

Input

One line containing the integer nn.

Output

Print two lines. The first is n:. The second is a+b (without spaces), or NO WAY! if there is no pair.

Subtasks

  • Subtask 1 (20 points): 4≤n≤1004\le n\le 100.
  • Subtask 2 (30 points): 4≤n≤100004\le n\le 10000.
  • Subtask 3 (50 points): 4≤n≤10000004\le n\le 1000000.

Examples

Input

10

Output

10:
3+7

Explanation

For n=10n=10, valid prime pairs are (3,7)(3,7) and (5,5)(5,5), with differences 44 and 00. The first pair maximizes the difference, so the second output line is 3+7.