题目描述
Problem Description
Weather information is disseminated in various forms worldwide. One such form is the surface weather observation code (SYNOP), which converts visibility (the maximum distance at which an object can be clearly seen with the naked eye) into a value called VV (reporting code) according to the following rules:
- Less than $0.1{\rm\ km}$: The VV value is $ 00 $.
- Between $0.1{\rm\ km}$ and $5{\rm\ km}$ inclusive: Multiply the distance $({\rm\ km})$ by $ 10 $. If the result is a single digit, prepend a $ 0 $.
- For example, $2,000{\rm\ m}$ $=2.0{\rm\ km}$ results in VV being $ 20 $. Similarly, $200{\rm\ m}$ results in VV being $ 02 $.
-
Between $6{\rm\ km}$ and $30{\rm\ km}$ inclusive: Add $ 50 $ to the distance $({\rm\ km})$.
- For example, $15,000{\rm\ m}$ $=15{\rm\ km}$ results in VV being $ 65 $. -
Between $35{\rm\ km}$ and $70{\rm\ km}$ inclusive: Subtract $ 30 $ from the distance $({\rm\ km})$, divide by $ 5 $, and then add $ 80 $.
- For example, $40,000{\rm\ m}$ $=40{\rm\ km}$ results in VV being $ 82 $. -
Greater than $70{\rm\ km}$: The VV value is $ 89 $.
You are given the visibility distance in meters and need to create a program that outputs the VV value calculated according to the above rules.
Note that VV is always a two-digit integer (including leading zeros), and there will be no inputs that result in non-integer values or fall outside the specified ranges (e.g., greater than $5{\rm\ km}$ but less than $6{\rm\ km}$).
Input Format
The input is given from the standard input in the following format:
$ m $
- The first line contains an integer $m\ (0≦m≦100,000)$ representing the distance in meters $({\rm\ m})$.
Output Format
Output the VV value in one line.
Also, include a newline at the end of the output.
Sample Input and Output
Sample Input #1
15000
Sample Output #1
65
Sample Input #2
75000
Sample Output #2
89
Sample Input #3
200
Sample Output #3
02
Notes/Hints
None
输入格式
见题面 Input 部分
输出格式
见题面 Output 部分