import sys
# 整数の入力
z = list(map(int, input().split()))

N = z[0]
R = z[1]
naibu = 0
if 10 <= N:
    naibu = R
else:
    naibu = R + (100 * (10 - N))
print(naibu) import sys sys z = list(map(int, input().split())) z list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split N = z[0] N z[0] z 0 R = z[1] R z[1] z 1 naibu = 0 naibu 0 if 10 <= N:
    naibu = R
else:
    naibu = R + (100 * (10 - N)) 10 <= N 10 N naibu = R naibu R naibu = R + (100 * (10 - N)) naibu R + (100 * (10 - N)) R 100 * (10 - N) 100 10 - N 10 N print(naibu) print naibu z = list(map(int, input().split())) list(map(int, input().split())) z naibu = 0 0 naibu naibu = R R naibu naibu = R + (100 * (10 - N)) R + (100 * (10 - N)) naibu R = z[1] z[1] R N = z[0] z[0] N
import sys
# 整数の入力
z = list(map(int, input().split()))

N = z[0]
R = z[1]
naibu = 0
if 10 <= N:
    naibu = R
else:
    naibu = R + (100 * (10 - N))
print(naibu)