from itertools import * 
r = 200 
p = [1,2,5,10,20,50,100,200] 
n = 0 
def t(s,pc): 
    if pc>=len(p): 
        return 
    for i in count(0): 
        l = s+i*p[pc] 
        if l == r: 
            global n 
            n+=1 
        if l >= r: 
            return 
        t(l,pc+1) 
t(0,0) 
print n 