Codeforces Round 324 (Div. 2)
D
Dima and Lisa
Codeforces
1800
原题
← CE →
翻译中…

Dima loves representing an odd number as the sum of multiple primes, and Lisa loves it when there are at most three primes. Help them to represent the given number as the sum of at most than three primes.

翻译中…

More formally, you are given an odd numer $*n*$. Find a set of numbers $*p*_{*i*}$ ($1 ≤ *i* ≤ *k*$), such that

翻译中…
  1. $1 ≤ *k* ≤ 3$
  2. $*p*_{*i*}$ is a prime
  3. image
翻译中…

The numbers $*p*_{*i*}$ do not necessarily have to be distinct. It is guaranteed that at least one possible solution exists.

翻译中…

Input

翻译中…

The single line contains an odd number $*n*$ ($3 ≤ *n* < 10^{9}$).

翻译中…

Output

翻译中…

In the first line print $*k*$ $(1 ≤ *k* ≤ 3)$, showing how many numbers are in the representation you found.

翻译中…

In the second line print numbers $*p*_{*i*}$ in any order. If there are multiple possible solutions, you can print any of them.

翻译中…

Note

翻译中…

A prime is an integer strictly larger than one that is divisible only by one and by itself.

翻译中…

样例

Input #1
27
Output #1
3
5 11 11
InputCopy OutputCopy
题目信息
题号
584D
时间限制
1 s
内存限制
256 MB
标签
暴力
数学
数论

题面与样例版权归 Codeforces 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。