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

cond = (N <= 10)
ans = R + 100 * (10-N) if cond else R

print(ans) import sys sys N, R = map(int, input().split()) N map(int, input().split()) map int input().split() ().split () input split R cond = (N <= 10) cond N <= 10 N 10 ans = R + 100 * (10-N) if cond else R ans R + 100 * (10-N) if cond else R cond R + 100 * (10-N) R 100 * (10-N) 100 10-N 10 N R print(ans) print ans cond = (N <= 10) N <= 10 cond R = map(int, input().split()) map(int, input().split()) R ans = R + 100 * (10-N) if cond else R R + 100 * (10-N) if cond else R ans N, R = map(int, input().split()) map(int, input().split()) N
import sys
N, R = map(int, input().split())

cond = (N <= 10)
ans = R + 100 * (10-N) if cond else R

print(ans)