#include <bits/stdc++.h>
using namespace std;
int main()
{int i,j,k;
for(i=1;i<=20;i++){
	for(j=1;j<=33;j++){
		k=100-i-j;
		if(k%3==0){
			if(5*i+3*j+k/3==100){
				cout<<i<<" "<<j<<" "<<k<<endl; 
			}
		}
	}
} 

	return 0;
}

/**************************************************************
	Problem: 1022
	User: lzk
	Language: C++
	Result: Accepted
	Time:11 ms
	Memory:2072 kb
****************************************************************/