#include <bits/stdc++.h>
using namespace std;
int main(){
int i,j,x,y;
for(i = 1;i <= (36 - 3 - 1) / 4;i++){
x = 36 - i * 4;
for(j = 1;j <= (x - 1) / 3;j++){
y = x - j * 3;
if(i + j + y * 2 == 36){
cout<<i<<" "<<j<<" "<<y * 2<<endl;
}
}
}
}
/**************************************************************
Problem: 1249
User: lijinkai
Language: C++
Result: Accepted
Time:3 ms
Memory:2072 kb
****************************************************************/