import math
N, R = map(int, input().split())
S = 0
if N>9:
     S = R
else:

    S = R + 100*(10-N)

print(S) import math math N, R = map(int, input().split()) N map(int, input().split()) map int input().split() ().split () input split R S = 0 S 0 if N>9:
     S = R
else:

    S = R + 100*(10-N) N>9 N 9 S = R S R S = R + 100*(10-N) S R + 100*(10-N) R 100*(10-N) 100 10-N 10 N print(S) print S S = R + 100*(10-N) R + 100*(10-N) S N, R = map(int, input().split()) map(int, input().split()) N R = map(int, input().split()) map(int, input().split()) R S = 0 0 S S = R R S
import math
N, R = map(int, input().split())
S = 0
if N>9:
     S = R
else:

    S = R + 100*(10-N)

print(S)