n,r = map(int, raw_input().split(' '))
def f(n,r):
  if n >= 10:
    return r
  else:
    return r + 100 * (10 - n)
print f(n,r) n,r = map(int, raw_input().split(' ')) n map(int, raw_input().split(' ')) map int raw_input().split(' ') ().split () raw_input split ' ' r def f(n,r):
  if n >= 10:
    return r
  else:
    return r + 100 * (10 - n) f if n >= 10:
    return r
  else:
    return r + 100 * (10 - n) n >= 10 n 10 return r r return r + 100 * (10 - n) r + 100 * (10 - n) r 100 * (10 - n) 100 10 - n 10 n n n r r print f(n,r) f n r def f(n,r):
  if n >= 10:
    return r
  else:
    return r + 100 * (10 - n) def f(n,r):
  if n >= 10:
    return r
  else:
    return r + 100 * (10 - n) f r = map(int, raw_input().split(' ')) map(int, raw_input().split(' ')) r n,r = map(int, raw_input().split(' ')) map(int, raw_input().split(' ')) n
n,r = map(int, raw_input().split(' '))
def f(n,r):
  if n >= 10:
    return r
  else:
    return r + 100 * (10 - n)
print f(n,r)