Codeforces Round #388 (Div. 2), problem: (A) Bachgold Problem Solution in C/C++
#include<stdio.h>
typedef unsigned u;
int main()
{
u n;
scanf(“%u”,&n);
printf(“%u\n”,n>>1);
if(n&1){printf(“3 “);n-=3;}
while(n){printf(“2 “);n-=2;}
return 0;
}