x = input().split()
n = int(x[0])
r = int(x[1])

if n >= 10:
  pass
else:
  r = r + 100 *(10-n)
  
print(r) x = input().split() x input().split() ().split () input split n = int(x[0]) n int(x[0]) int x[0] x 0 r = int(x[1]) r int(x[1]) int x[1] x 1 if n >= 10:
  pass
else:
  r = r + 100 *(10-n)
   n >= 10 n 10 r = r + 100 *(10-n) r r + 100 *(10-n) r 100 *(10-n) 100 10-n 10 n print(r) print r x = input().split() input().split() x r = r + 100 *(10-n) r + 100 *(10-n) r r = int(x[1]) int(x[1]) r n = int(x[0]) int(x[0]) n
x = input().split()
n = int(x[0])
r = int(x[1])

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