led = {
    '0': 6, '1' : 2, '2' :5, '3' : 5, '4' : 4, '5' : 5, '6' : 6, '7' : 3, '8': 7, '9' : 6 
}

time = input()

total = 0

for i in time:
    if i in led:
        total += led[i]

print(total)

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: