import sys
input = sys.stdin.readline
# int(input()) # 入力が1つ
n, r = map(int, input().split()) # 入力が複数
# [int(i) for i in input().split()] # 配列で数字

if n >= 10:
    print(r)
else:
    print(r + 100 * (10 - n)) import sys sys input = sys.stdin.readline input sys.stdin.readline sys.stdin sys stdin readline n, r = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split r if n >= 10:
    print(r)
else:
    print(r + 100 * (10 - n)) n >= 10 n 10 print(r) print r print(r + 100 * (10 - n)) print r + 100 * (10 - n) r 100 * (10 - n) 100 10 - n 10 n n, r = map(int, input().split()) map(int, input().split()) n input = sys.stdin.readline sys.stdin.readline input r = map(int, input().split()) map(int, input().split()) r
import sys
input = sys.stdin.readline
# int(input()) # 入力が1つ
n, r = map(int, input().split()) # 入力が複数
# [int(i) for i in input().split()] # 配列で数字

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