【100 points】【Reliable car】

topic description

Programmer Xiao Ming took a taxi to go to work. Out of professional sensitivity, he noticed that there was something wrong with the meter of this taxi, which was always too large.

The taxi driver explained that he didn't like the number 4, so he refitted the meter, and skipped any number where it encountered the number 4, and the rest of the functions were normal.

for example:

  • 23 one more dollar becomes 25;
  • 39 one more dollar becomes 50;
  • 399 and one more dollar becomes 500;

Xiao Ming saw through the driver's trick, and was going to use his knowledge to defeat the driver's conspiracy.

Given a face reading of the meter, returns the actual charge incurred.

enter description

There is only one line, the number N, indicating the odometer reading.

(1<=N<=888888888)。

output description

A number representing the actual cost incurred. End with carriage return.

Example 1 The input and output examples are only for debugging, and the background judgment data generally does not include examples

train of thought

Ok, here is the idea to solve the problem:

  1. First, we need to take the input surface reading N and convert it to an integer. <

Guess you like

Origin blog.csdn.net/weixin_54707168/article/details/131992721
car