#include<bits/stdc++.h>
using namespace std;
int main()
{
	int i,X,A=5,B=3,w,j,q;
	for(i=1;i<=100/5;i++){
		for(j=1;j<=100/3;j++){
			for(q=3;q<=100;q+=3){
				if(i*5+j*3+q/3==100&&i+j+q==100)
				cout<<i<<" "<<j<<" "<<q<<endl;
			}
		}
	}
	return 0;
}
/**************************************************************
	Problem: 1022
	User: houshanglin
	Language: C++
	Result: Accepted
	Time:4 ms
	Memory:2072 kb
****************************************************************/