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.

-----Sample Input-----
2 2919

-----Sample Output-----
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.

Difficulty: EASY

Solutions:
(n, k) = map(int, input().split())
if n < 10:
	k += 100 * (10 - n)
print(k)


(n, r) = map(int, input().split())
if n >= 10:
	print(r)
else:
	print(r + 100 * (10 - n))


a = list(map(int, input().split()))
print(a[1] + 100 * max(0, 10 - a[0]))


(k, n) = map(int, input().split())
if k > 9:
	print(n)
else:
	print(n + 100 * (10 - k))


(n, r) = map(int, input().split())
print(r + 100 * (10 - min(n, 10)))


(N, R) = map(int, input().split())
print(R if N >= 10 else R + 100 * (10 - N))


(N, R) = [int(x) for x in input().split()]
print(R + 100 * max(10 - N, 0))


(N, R) = map(int, input().split())
ans = R + 100 * max(0, 10 - N)
print(ans)


(N, R) = (int(x) for x in input().split())
if N < 10:
	R = R + 100 * (10 - N)
print(R)


(n, r) = map(int, input().split())
print(100 * max(0, 10 - n) + r)


(n, r) = map(int, input().split())
ans = r
if n < 10:
	ans += 100 * (10 - n)
print(ans)


(n, r) = map(int, input().split())
if n >= 10:
	print(r)
else:
	k = n
	x = r + 100 * (10 - k)
	print(x)


(a, b) = map(int, input().split())
print(b + 100 * max(10 - a, 0))


(a, b) = map(int, input().split())
if a < 10:
	b = b + 100 * (10 - a)
print(b)


(N, R) = map(int, input().split())
if N <= 9:
	ans = R + (1000 - 100 * N)
else:
	ans = R
print(ans)


(n, r) = map(int, input().split())
print([r + 100 * (10 - n), r][n > 9])


(n, r) = [int(k) for k in input().strip().split(' ')]
print(r + max(0, (10 - n) * 100))


(a, b) = [int(i) for i in input().split()]
b = b + 100 * (10 - a) if a < 10 else b
print(b)


(N, R) = tuple((int(n) for n in input().split()))
print(R + max(0, 100 * (10 - N)))


(k, r) = map(int, input().split())
print(r) if k >= 10 else print(r + 100 * (10 - k))


(n, m) = map(int, input().split())
print(m + (n < 10) * 100 * (10 - n))


(n, r) = map(int, input().split())
print(r + max(1000 - 100 * n, 0))


(n, x) = list(map(int, input().split()))
if n >= 10:
	print(x)
else:
	y = x + (10 - n) * 100
	print(y)


(N, R) = map(int, input().split())
n = max(0, 10 - N)
A = R + 100 * n
print(A)


(N, R) = map(int, input().split())
print(R + 100 * (10 - min(N, 10)))


(n, r) = list(map(int, input().split()))
print(r if n >= 10 else r + 1000 - 100 * n)


(N, R) = input().split()
N = int(N)
R = int(R)
if N < 10:
	R += 100 * (10 - N)
print(R)


(n, r) = map(int, input().split())
print((n < 10) * (r + 100 * (10 - n)) or r)


import os, sys, re, math
(N, R) = [int(n) for n in input().split()]
if N >= 10:
	print(R)
else:
	print(R + 100 * (10 - N))


print(eval('max(0,100*(10-' + input().replace(' ', '))+')))


def main():
	(n, r) = list(map(int, input().split()))
	if n >= 10:
		return r
	else:
		return r + 100 * (10 - n)

def __starting_point():
	print(main())
__starting_point()


(N, R) = map(int, input().split())
print(R + max(1000 - 100 * N, 0))


(a, b) = map(int, input().split())
print(100 * (10 - a) + b if 10 - a > 0 else b)


(a, b) = map(int, input().split())
x = b if a > 10 else b + (10 - a) * 100
print(x)


(K, R) = map(int, input().split())
if K >= 10:
	print(R)
else:
	print(R + 100 * (10 - K))


(N, R) = map(int, input().split())
print((R + 100 * (10 - N), R)[N > 9])


(N, R) = map(int, input().split())
ans = 0
if N >= 10:
	ans += R
else:
	ans += R + 100 * (10 - N)
print(ans)


(n, r) = map(int, input().split())
ra = r
if n <= 10:
	ra = ra + 1000 - 100 * n
print(ra)


(n, p) = map(int, input().split())
if n < 10:
	rate = p + 100 * (10 - n)
else:
	rate = p
print(rate)


(N, R) = [int(i) for i in input().split()]
print(R if N >= 10 else R + 100 * (10 - N))


(n, r) = list(map(int, input().split()))
if n < 10:
	r += 100 * (10 - n)
print(r)


(N, R) = list(map(int, input().split()))
print(R + 100 * max(0, 10 - N))


(k, n) = list(map(int, input().split(' ')))
print(n + 100 * (10 - min(10, k)))


[N, R] = [int(item) for item in input().split()]
print(max(R, R + 100 * (10 - N)))


(X, Y) = map(int, input().split())
a = max(0, 10 - X)
print(Y + 100 * a)


(N, L) = map(int, input().split())
if N >= 10:
	print(L)
else:
	print(L + 100 * (10 - N))


(n, a) = map(int, input().split())
if n < 10:
	a += 100 * (10 - n)
print(a)


N = list(map(int, input().split()))
if N[0] < 10:
	print(N[1] + 100 * (10 - N[0]))
else:
	print(N[1])


(n, k) = map(int, input().split())
print(k + 100 * max(10 - n, 0))


(N, R) = map(int, input().split())
if N >= 10:
	print(str(R))
else:
	x = R + 100 * (10 - N)
	print(str(x))


(N, R) = list(map(int, input().split()))
if N < 10:
	R += 100 * (10 - N)
print(R)


m = input('')
list = m.split(' ')
if eval(list[0]) < 10:
	print(eval(list[1]) + 100 * (10 - eval(list[0])))
if eval(list[0]) >= 10:
	print(eval(list[1]))


(n, r) = map(int, input().split())
if n >= 10:
	print(r)
else:
	a = 100 * (10 - n)
	b = a + r
	print(b)


(n, r) = map(int, input().split())
rate = max(r + 100 * (10 - n), r)
print(rate)


(n, m) = map(int, input().split())
print(m + max(0, 100 * (10 - n)))


(N, K) = map(int, input().split())
print(K + 100 * max(10 - N, 0))


(A, B) = map(int, input().split())
if A >= 10:
	print(B)
else:
	print(B + 100 * (10 - A))


(N, R) = map(int, input().strip().split(' '))
print(R + 100 * max(0, 10 - N))


print((lambda x: int(x[1]) + max(0, 100 * (10 - int(x[0]))))(input().split()))


(N, R) = map(int, input().split())
R_in = R + 100 * max(0, 10 - N)
print(R_in)


(N, R) = map(int, input().split())
if N >= 10:
	r = R
else:
	r = R - 100 * N + 1000
print(r)


def main():
	(N, R) = map(int, input().split())
	if N >= 10:
		print(R)
	else:
		print(R + 100 * (10 - N))

def __starting_point():
	main()
__starting_point()


(N, K) = map(int, input().split())
print(K if N >= 10 else K + (1000 - 100 * N))


(n, r) = (int(x) for x in input().split())
print(r + max(0, 100 * (10 - n)))


def resolve():
	(n, r) = map(int, input().split())
	print(r if n >= 10 else r + 100 * (10 - n))
resolve()


[n, r] = input().split()
n = int(n)
r = int(r)
if n >= 10:
	print(r)
else:
	ans = r + 100 * (10 - n)
	print(ans)


(n, m) = map(int, input().split())
if n < 10:
	print(m + (10 - n) * 100)
else:
	print(m)


(N, R) = list(map(int, input().split()))
if N >= 10:
	print(R)
else:
	K = 10 - N
	I = 100 * K
	print(R + I)


(N, R) = map(int, input().split())
plus = 0
if N < 10:
	plus = 100 * (10 - N)
print(R + plus)


(N, M) = map(int, input().split())
if N <= 10:
	M += 100 * (10 - N)
print(M)