题目描述
<p><span style="color: rgb(85, 85, 85); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 20px;">Peter is a cleanly boy.One day,he finds that the number of cabinet has not been the </span></p> <div style="color: rgb(85, 85, 85); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 20px;">number '4' when he goes to the bathhouse . Peter is curious about that .Maybe , in the</div> <div style="color: rgb(85, 85, 85); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 20px;">opinion of boss of bathhouse, '4' is a unlucky number .</div> <div style="color: rgb(85, 85, 85); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 20px;"> Now Peter knows the biggest number of the cabinet N , can you help Peter to calculate</div> <p><br /> <span style="color: rgb(85, 85, 85); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 20px;">the amount of cabinet in total?</span></p> <p></p>
输入格式
<p style="margin: 0px 0px 10px; color: rgb(85, 85, 85); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 20px;">The input contains many test cases . Each line has a positive integer N.</p> <div style="color: rgb(85, 85, 85); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 20px;">( 1 <= N <= 50000 )</div> <p></p>
输出格式
<p><span style="color: rgb(85, 85, 85); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 20px; background-color: rgb(245, 245, 245);">For each test case, you should output one line . That is, Output the amount of cabinet.</span></p> <p></p>
样例
样例输入 1
3
5
样例输出 1
3
4
提交代码
请先登录后提交
🤖 AI 解题助手
DeepSeek
就绪