#include<iostream>
using namespace std;
/**
100=10x+5y+z;
x>=1 && x<=9
y>=1 &&y<=18
z>=1 && z<=85
*/
int main(){
for(int x=1;x<=9;x++){
for(int y=1;y<=18;y++){
for(int z=1;z<=85;z++){
if(10*x+5*y+z==100){
cout<<x<<" "<<y<<" "<<z<<endl;
}
}
}
}
system("pause");
}
int main(){
int num=0;
for(int x=1;x<=9;x++){
for(int y=1;y<=18;y++){
if(100-10*x-5*y>0){
num++;
}
}
}
cout<<num<<endl;
system("pause");
}
int main(){
int count=0;
for(int i=1;i<=9;i++){
count+=2*i-1;
}
cout<<count<<endl;
system("pause");
}
int main(){
cout<<(1+17)*9/2<<endl;
system("pause");
}