Problem: You are given a string, which contains entirely of decimal digits (0-9). Each digit is made of a certain number of dashes, as shown in the image below. For instance 1 is made of 2 dashes, 8 is made of 7 dashes and so on.

You have to write a function that takes this string message as an input and returns a corresponding value in terms of a number. This number is the count of dashes in the string message.

Note:

0 consists of 6 dashes, 1 consists of 2 dashes, 2 consists of 5 dashes, 3 consists of 5 dashes, 4 consists of 4 dashes, 5 consists of 5 dashes, 6 consists of 6 dashes, 7 consists of 3 dashes [though the figure shows that 7 consists of 4 dashes but due to minor mistake in the problem please write your solution assuming 7 consists of 3 dashes], 8 consists of 7 dashes, 9 consists of 6 dashes.

Constraints
String message will contain at least one digit, but not more than 100
Each character in code will be a digit ('0'-'9').

SAMPLE INPUT
12134

SAMPLE OUTPUT
18

Solution (in PYTHON):

Solution:
n=raw_input()


if '0' in n:
    c0=6

else:
    c0=0

if '1' in n:
    c1=2

else:
    c1=0

if '2' in n:
    c2=5

else:
    c2=0
    

if '3' in n:
    c3=5

else:
    c3=0

if '4' in n:
    c4=4

else:
    c4=0
    
if '5' in n:
    c5=5

else:
    c5=0

if '6' in n:
    c6=6

else:
    c6=0

if '7' in n:
    c7=3

else:
    c7=0
    
if '8' in n:
    c8=7

else:
    c8=0

if '9' in n:
    c9=6

else:
    c9=0



print((c1*n.count('1'))+(c2*n.count('2'))+(c3*n.count('3'))+(c4*n.count('4'))+(c5*n.count('5'))+(c6*n.count('6'))+(c7*n.count('7'))+(c8*n.count('8'))+(c9*n.count('9'))+(c0*n.count('0')))