s=input() a=[] for i in range(len(s)+1): for c in "0123456789": a+=[s[:i]+c+s[i:]] print(len(set(a))-1)