AtCoder Beginner Contest 156
A
Beginner
AtCoder
⌀ 0
原题
←B →
翻译中…

Problem Statement

翻译中…

Takahashi is a member of a programming competition site, ButCoder.

翻译中…

Each member of ButCoder is assigned two values: Inner Rating and Displayed Rating.

翻译中…

The Displayed Rating of a member is equal to their Inner Rating if the member has participated in $10$ or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus $100 \times (10 - K)$ when the member has participated in $K$ contests.

翻译中…

Takahashi has participated in $N$ contests, and his Displayed Rating is $R$. Find his Inner Rating.

翻译中…

Constraints

翻译中…
  • All values in input are integers.
  • $1 \leq N \leq 100$
  • $0 \leq R \leq 4111$
翻译中…

Input

翻译中…

Input is given from Standard Input in the following format:

翻译中…

N R

翻译中…

Output

翻译中…

Print his Inner Rating.

翻译中…

样例

Input #1
2 2919
Output #1
3719
Takahashi has participated in $2$ contests, which is less than $10$, so his Displayed Rating is his Inner Rating minus $100 \times (10 - 2) = 800$. Thus, Takahashi's Inner Rating is $2919 + 800 = 3719$.
Input #2
22 3051
Output #2
3051
题目信息
题号
abc156_a
时间限制
2 s
内存限制
1024 MB

题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。