
import sys

# 再起回数上限変更
sys.setrecursionlimit(1000000)

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

if N >= 10:
    print(R)
    sys.exit()

print(R + 100 * (10 - N)) import sys sys sys.setrecursionlimit(1000000) sys.setrecursionlimit sys setrecursionlimit 1000000 N, R = map(int, input().split()) N map(int, input().split()) map int input().split() ().split () input split R if N >= 10:
    print(R)
    sys.exit() N >= 10 N 10 print(R) print R sys.exit() sys.exit sys exit print(R + 100 * (10 - N)) print R + 100 * (10 - N) R 100 * (10 - N) 100 10 - N 10 N R = map(int, input().split()) map(int, input().split()) R N, R = map(int, input().split()) map(int, input().split()) N

import sys

# 再起回数上限変更
sys.setrecursionlimit(1000000)

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

if N >= 10:
    print(R)
    sys.exit()

print(R + 100 * (10 - N))
