#include<iostream>
#include<list>
#include<string>
#include<cstring>
#include<sstream>
#include<cctype>
#include<string.h>
#include<algorithm>
#include<cmath>
#include<stack>
#include<fstream>
#include<cstdlib>
#include<vector>
#include<map>
#include<set>
#include<utility>
#include<iomanip>
#include<queue>
using namespace std;
#define INF (1<<29)
#define SET(a) memset(a,-1,sizeof(a))
#define ALL(a) a.begin(),a.end()
#define CLR(a) memset(a,0,sizeof(a))
#define FILL(a,v) memset(a,v,sizeof(a))
#define PB push_back
#define FOR(i,n) for(int i = 0;i<n;i++)
#define PI acos(-1.0)
#define EPS 1e-9
#define MP(a,b) make_pair(a,b)
#define min3(a,b,c) min(a,min(b,c))
#define max3(a,b,c) max(a,max(b,c))
#define READ freopen("input.txt", "r", stdin)
#define WRITE freopen("output.txt", "w", stdout)
#define LL long long
#define MX 100010
#define MOD 1000000007
int s[] = {10000,5000,2000,1000,500,200,100,50,20,10,5};
LL count(LL n){
LL table[n+1];
for(int i =0;i<n+1;i++)table[i] =0;
table[0] = 1;
for(int i =0;i<11;i++){
for(int j = s[i];j<n+1;j++){
table[j]+=table[j-s[i]];
}
}
return table[n];
}
int main(){
double c;
LL n;
while(cin>>c){
LL n;
n = 100*c;
if(c!=0.00){
printf("%6.2lf%17lld\n",c,count(n));
}
}
return 0;
}
I2luY2x1ZGU8aW9zdHJlYW0+CiNpbmNsdWRlPGxpc3Q+CiNpbmNsdWRlPHN0cmluZz4KI2luY2x1ZGU8Y3N0cmluZz4KI2luY2x1ZGU8c3N0cmVhbT4KI2luY2x1ZGU8Y2N0eXBlPgojaW5jbHVkZTxzdHJpbmcuaD4KI2luY2x1ZGU8YWxnb3JpdGhtPgojaW5jbHVkZTxjbWF0aD4KI2luY2x1ZGU8c3RhY2s+CiNpbmNsdWRlPGZzdHJlYW0+CiNpbmNsdWRlPGNzdGRsaWI+CiNpbmNsdWRlPHZlY3Rvcj4KI2luY2x1ZGU8bWFwPgojaW5jbHVkZTxzZXQ+CiNpbmNsdWRlPHV0aWxpdHk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