P27605 [洛谷] [Language Monthly Contest 202401] Grape Juice-Filled Wine Glasses
普及-
题目描述

Problem Description

Xiao H has five wine glasses to choose from, with capacities of $100\text{mL}$, $150\text{mL}$, $300\text{mL}$, $400\text{mL}$, and $1000\text{mL}$.

Now, Xiao H wants to choose one of these five glasses to drink grape juice. Xiao H plans to drink $a\text{ mL}$ (where $a \leq 1000$) of grape juice. Determine the minimum capacity of the wine glass that Xiao H needs to choose to ensure that it can hold $a\text{ mL}$ of grape juice without overflowing.

Input Format

The input consists of a single line containing an integer $a$, representing the amount of grape juice (in $\text{mL}$) that Xiao H intends to drink.

Output Format

The output should be a single line containing an integer, representing the minimum capacity (in $\text{mL}$) of the wine glass that Xiao H needs to choose to hold $a\text{ mL}$ of grape juice.

Sample Input and Output

Sample Input #1

50

Sample Output #1

100

Sample Input #2

112

Sample Output #2

150

Sample Input #3

300

Sample Output #3

300

Notes

Sample Explanation #1

To hold $50\text{ mL}$ of grape juice, a $100\text{ mL}$ wine glass is sufficient.

Data Range and Constraints

For $100\%$ of the data, it is guaranteed that $1 \leq a \leq 1000$.

输入格式

见题面 Input 部分

输出格式

见题面 Output 部分

样例输入
50
样例输出
100