import itertools
l = list(range(100))
n = {}
cnt = {0:6,1:2,2:5,3:5,4:4,5:5,6:6,7:3,8:7,9:6}
for i in itertools.product(l,repeat=3):
if i[0]+i[1] == i[2]:
n[i] = 0
for j in i:
j = str(j)
for k in j:
n[i] += cnt[int(k)]
n[i] += 4
from collections import Counter
print(Counter(n.values())[int(input())])
不知道为啥就样例5不过,其他都过了,80分。