1049: 火柴棍游戏(一)

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:22 Solved:18

Description

用火柴棍拼成数字0~9,具体拼法看必修一作业本37页(图放不上来)


输入任意一个数字,输出所需火柴棍的数量。

Input

8

Output

7

Sample Input Copy

7

Sample Output Copy

3