import sys

N, R = map(int, sys.stdin.buffer.read().split())
rate = R

if N < 10:
  rate += 100 * (10 - N)

print(rate) import sys sys N, R = map(int, sys.stdin.buffer.read().split()) N map(int, sys.stdin.buffer.read().split()) map int sys.stdin.buffer.read().split() sys.stdin.buffer.read().split sys.stdin.buffer.read() sys.stdin.buffer.read sys.stdin.buffer sys.stdin sys stdin buffer read split R rate = R rate R if N < 10:
  rate += 100 * (10 - N) N < 10 N 10 rate += 100 * (10 - N) rate 100 * (10 - N) 100 10 - N 10 N print(rate) print rate R = map(int, sys.stdin.buffer.read().split()) map(int, sys.stdin.buffer.read().split()) R N, R = map(int, sys.stdin.buffer.read().split()) map(int, sys.stdin.buffer.read().split()) N rate = R R rate rate += 100 * (10 - N) 100 * (10 - N) rate
import sys

N, R = map(int, sys.stdin.buffer.read().split())
rate = R

if N < 10:
  rate += 100 * (10 - N)

print(rate)
