#include <bits/stdc++.h>
using namespace std;
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main(int argc, char** argv) {
int n;
int a[5]={0,10,20,50,100},h[1001]={0};
h[0]=1;
cin>>n;
for(int i=1;i<=4;i++){
for(int j=a[i];j<=n;j++){
h[j]+=h[j-a[i]];
}
}
cout<<h[n];
return 0;
}