#include<bits/stdc++.h>
using namespace std;
int main()
{
int i=1,j,z,s=0;
for(i=1;i<=100/2;i++){
for(j=1;j<=100/4;j++){
for(z=1;z<=100/9;z++){
if(i+j+z*9==100&&i*2+j*4+z*2==100){
cout<<z<<" "<<i<<" "<<j<<endl;
s++;
}
}
}
}
cout<<s;
return 0;
}
/**************************************************************
Problem: 1076
User: houshanglin
Language: C++
Result: Wrong Answer
****************************************************************/