Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int x2, x3, n, n1;
- cin>>n;
- x3 = n / 3;
- n = n % 3;
- if ((x3 == 1) && (n = 1))
- {
- cout<<2<<" "<<2;
- }
- if (n == 0)
- cout<<3<<" "<<x3<<endl;
- else
- if ((n % 2) == 0)
- cout<<3<<" "<<x3<<" "<<n/2<<endl;
- else
- cout<<2<<" "<<2<<" "<<3<<" "<<(x3 - 1)<<endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement