#include<bits/stdc++.h>
using namespace std;
int main()
{
int i,j,z,s=0;
for(z=1;z<=100/9;z++){
for(i=1;i<=100/2;i++){
for(j=1;j<=100/4;j++){
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: Accepted
Time:4 ms
Memory:2072 kb
****************************************************************/