#ABC156A. Beginner

Beginner

题目描述

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 1010 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100×(10K)100 \times (10 - K) when the member has participated in KK contests.

Takahashi has participated in NN contests, and his Displayed Rating is RR. Find his Inner Rating.

高桥是编程竞赛网站 ButCoder 的成员。

ButCoder 的每个成员都被赋予两个值:内部评分和显示评分**。

如果会员参加过 1010 或更多比赛,则其显示评分等于其内部评分。否则,当会员参加过 KK 次比赛时,显示等级将是其内部等级减去 100×(10K)100 \times (10 - K)

高桥参加了 NN 项比赛,他的显示评分是 RR 。查找他的内部评分。

输入格式

输入内容按以下格式标准输入:

NN RR

输出格式

打印他的内心评价。

样例 #1

样例输入 #1

2 2919

样例输出 #1

3719

样例 #2

样例输入 #2

22 3051

样例输出 #2

3051

说明

数据规模与约定

  • 所有输入值均为整数。
  • 1N1001 \leq N \leq 100
  • 0R41110 \leq R \leq 4111

样例 11 解释

高桥参加过 22 次比赛,少于 1010 ,因此他的显示评分是他的内心评分减去 100×(102)=800100 \times (10 - 2) = 800

因此,高桥的内心评分为 2919+800=37192919 + 800 = 3719