7651: Bathe
内存限制:128 MB
时间限制:1.000 S
评测方式:文本比较
命题人:
提交:2
解决:2
题目描述
Peter is a cleanly boy.One day,he finds that the number of cabinet has not been the
number '4' when he goes to the bathhouse . Peter is curious about that .Maybe , in the
opinion of boss of bathhouse, '4' is a unlucky number .
Now Peter knows the biggest number of the cabinet N , can you help Peter to calculate
the amount of cabinet in total?
输入
The input contains many test cases . Each line has a positive integer N.
( 1 <= N <= 50000 )
输出
For each test case, you should output one line . That is, Output the amount of cabinet.
样例输入 复制
3
5
样例输出 复制
3
4