38 lines
527 B
C++
38 lines
527 B
C++
#include <bits/stdc++.h>
|
|
|
|
using namespace std;
|
|
|
|
void test_case(int tc){
|
|
int n;
|
|
cin >> n;
|
|
|
|
int result = n / 3 + 2;
|
|
if(n % 3 == 0) {
|
|
result = n / 3 + 1;
|
|
}
|
|
int r2 = result - 1;
|
|
if(n == 7){
|
|
r2 = 2;
|
|
}
|
|
int lowest = n - result - r2;
|
|
|
|
cout << r2 << " " << result << " " << lowest << '\n';
|
|
}
|
|
|
|
|
|
|
|
int main(){
|
|
ios::sync_with_stdio(0);
|
|
cin.tie(0);
|
|
|
|
int t;
|
|
cin >> t;
|
|
|
|
for(int tc = 1; tc <= t; ++tc){
|
|
test_case(tc);
|
|
}
|
|
|
|
cout << flush;
|
|
|
|
return 0;
|
|
} |