Problem2164--非3数字相加

2164: 非3数字相加

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 0  Solved: 0
[Status] [Submit] [Creator:]

Description

输入一个正整数,将其各位数字中不为3的数字相加,求和输出。

例如:输入:1234,那么各个位数字中不为3的有124 1+2+4=7。输出:7

例如:输入:333,则输出0

Input

输入一行,一个整数n,(n<=100000

Output

1输出一行,一个整数即各位数字中不为3的数字之和;如果没有非3的数字,则直接输出0

Sample Input Copy

1234

Sample Output Copy

7

Source/Category

 level1