#include <iostream>
using namespace std;
int main()
{
for (int a = 0; a <= 100; a++)
{
for (int b = 0; b <= 100; b++)
{
int c = 100 - a - b;
if (c < 0)
break;
if (a * 5 + b * 3 + c / 3 == 100 && c % 3 == 0)
{
cout << a << " " << b << " " << c << endl;
}
}
}
return 0;
}