n,r = input().split()
n = int(n)
r = int(r)

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

if n >= 10:
  i = r
else:
  i = r + 100 * (10 - n)
print(i)