CF584D.Dima and Lisa

普及/提高-

通过率:0%

AC君温馨提醒

该题目为【codeforces】题库的题目,您提交的代码将被提交至codeforces进行远程评测,并由ACGO抓取测评结果后进行展示。由于远程测评的测评机由其他平台提供,我们无法保证该服务的稳定性,若提交后无反应,请等待一段时间后再进行重试。

题目描述

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 nn . Find a set of numbers pip_{i} ( 1<=i<=k1<=i<=k ), such that

  1. 1<=k<=31<=k<=3
  2. pip_{i} is a prime

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

输入格式

The single line contains an odd number nn ( 3<=n<10^{9} ).

输出格式

In the first line print kk (1<=k<=3)(1<=k<=3) , showing how many numbers are in the representation you found.

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

输入输出样例

  • 输入#1

    27
    

    输出#1

    3
    5 11 11
    

说明/提示

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

首页