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