import sys

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
sys.setrecursionlimit(10 ** 7)

N, R = map(int, readline().split())

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

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
sys.setrecursionlimit(10 ** 7)

N, R = map(int, readline().split())

ans = R
if (N<10):
    ans += 100*(10-N)
print(ans)