LearnPy Hub
← Arena
EasyRating 900

Most Primes in a Sum

Write n as a sum of as many primes as possible. Print how many primes, then the primes on the next line (2s first, then at most one 3).

Input

One integer n (2 ≤ n ≤ 10⁴).

Output

The count, then the primes.

Sample 1

Input
5
Output
2
2 3

Sample 2

Input
6
Output
3
2 2 2
solution.py
Output appears here
Most Primes in a Sum · Python Arena problem · LearnPy Hub