#include<iostream>
#include<algorithm>
#include<cstring>
#include<vector>
using namespace std ;
const int N =1010;
int n ,f[N];
int main()
{
int m[4] = {10,20,50,100};
cin >> n ;
f[0] = 1;
for(int i = 0 ; i < 4 ;++ i)
{
int v = m[i] ;
for(int j = v ; j <= n ; ++ j)f[j] +=f[j-v];
}
cout << f[n] << endl;
return 0;
}