#PCBBAY0000030. Làm tròn đến hàng trăm (Round to Hundreds)
Làm tròn đến hàng trăm (Round to Hundreds)
Round to Hundreds
Version: Phuoc Hung OJ Extended
Problem Statement
Given an integer , round it to the nearest multiple of , as in Python 3 round(n, -2). At an exact halfway point, choose the multiple whose hundreds digit is even. Print the resulting integer.
Input
The only line contains an integer .
Output
Print one integer: the result of round(n, -2).
Subtasks
- Subtask 1 (100 points): .
Examples
Example 1
Input
149
Output
100
Explanation. For input 149, round(n, -2) produces 100. An exact halfway case is resolved by selecting the even candidate.
Example 2
Input
150
Output
200
Explanation. For input 150, round(n, -2) produces 200. An exact halfway case is resolved by selecting the even candidate.
Example 3
Input
250
Output
200
Explanation. For input 250, round(n, -2) produces 200. An exact halfway case is resolved by selecting the even candidate.