Language: C++

#include <bits/stdc++.h>
#define ll long long
#define mod 1000000007
#define upperlimit 1000100
#define INF 1000000100
#define INFL 1000000000000000100
#define eps 1e-8
#define endl '\n'
#define sd(n) scanf("%d",&n)
#define slld(n) scanf("%lld",&n)
#define pd(n) printf("%d",n)
#define plld(n) printf("%lld",n)
#define pds(n) printf("%d ",n)
#define pllds(n) printf("%lld ",n)
#define pdn(n) printf("%d\n",n)
#define plldn(n) printf("%lld\n",n)
#define REP(i,a,b) for(i=a;i<=b;i++)
#define mp make_pair
#define pb push_back
#define pcc pair<char,char>
#define pii pair<int,int>
#define pll pair<ll,ll>
#define vi vector<int>
#define vl vector<ll>
#define vii vector<pii>
#define vll vector<pll>
#define tr(container,it) for(typeof(container.begin()) it=container.begin();it!=container.end();it++)
#define F first
#define S second
#define clr(a) memset(a,0,sizeof(a))
using namespace std;
 
ll gcd(ll n1,ll n2){
    if(!n1)return n2;
    if(!n2)return n1;
    if(n1%n2==0)return n2;
    return gcd(n2,n1%n2);
}
ll powmod(ll base,ll exponent){
    base%=mod;
    ll ans=1;
    while(exponent){
        if(exponent&1)ans=(ans*base)%mod;
        base=(base*base)%mod;
        exponent/=2;
    }
    ans%=mod;
    return ans;
}
int main()
{
    int N;
    
    cin>>N;
    int k;
    int r;
    k=N/4+1;
    r=4*k-N;
    
    if(r=0){ 
         cout<<3*k<<' '<<3*k<<' '<<3*k<<endl;
    }
    if(r=1){
         cout<<k<<' '<<2*k*(4k-1)<<' '<<2*k*(4k-1)<<endl;
    }
    if(r=2){
         cout<<k<<' '<<k*(4k-2)<<' '<<k*(4k-2)<<endl;
    } 
    if(r=3){
         if( (k*(4k-3))%3==0 ){
              cout<<k<<' '<<(2*k*(4k-3))/3<<' '<<(2*k*(4k-3))/3<<endl;
         }
         if( (k*(4k-3))%3==2 ){ 
              cout<<k<<' '<<((4k-3)*k+1)/3<<' '<<((4k-3)*k+1)((4k-3)*k)/3<<endl;
         }
    }

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:64:29: error: fixed-point types not supported in C++
   64 |          cout<<k<<' '<<2*k*(4k-1)<<' '<<2*k*(4k-1)<<endl;
      |                             ^~
a.cc:64:46: error: fixed-point types not supported in C++
   64 |          cout<<k<<' '<<2*k*(4k-1)<<' '<<2*k*(4k-1)<<endl;
      |                                              ^~
a.cc:67:27: error: fixed-point types not supported in C++
   67 |          cout<<k<<' '<<k*(4k-2)<<' '<<k*(4k-2)<<endl;
      |                           ^~
a.cc:67:42: error: fixed-point types not supported in C++
   67 |          cout<<k<<' '<<k*(4k-2)<<' '<<k*(4k-2)<<endl;
      |                                          ^~
a.cc:70:18: error: fixed-point types not supported in C++
   70 |          if( (k*(4k-3))%3==0 ){
      |                  ^~
a.cc:71:35: error: fixed-point types not supported in C++
   71 |               cout<<k<<' '<<(2*k*(4k-3))/3<<' '<<(2*k*(4k-3))/3<<endl;
      |                                   ^~
a.cc:71:56: error: fixed-point types not supported in C++
   71 |               cout<<k<<' '<<(2*k*(4k-3))/3<<' '<<(2*k*(4k-3))/3<<endl;
      |                                                        ^~
a.cc:73:18: error: fixed-point types not supported in C++
   73 |          if( (k*(4k-3))%3==2 ){
      |                  ^~
a.cc:74:31: error: fixed-point types not supported in C++
   74 |               cout<<k<<' '<<((4k-3)*k+1)/3<<' '<<((4k-3)*k+1)((4k-3)*k)/3<<endl;
      |                               ^~
a.cc:74:52: error: fixed-point types not supported in C++
   74 |               cout<<k<<' '<<((4k-3)*k+1)/3<<' '<<((4k-3)*k+1)((4k-3)*k)/3<<endl;
      |                                                    ^~
a.cc:74:64: error: fixed-point types not supported in C++
   74 |               cout<<k<<' '<<((4k-3)*k+1)/3<<' '<<((4k-3)*k+1)((4k-3)*k)/3<<endl;
      |                                                                ^~