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

if N >= 10:
    naibu = hyoji
else:
    naibu = hyoji + (100 * (10 - N))

print(naibu) N, hyoji = map(int, input().split()) N map(int, input().split()) map int input().split() ().split () input split hyoji if N >= 10:
    naibu = hyoji
else:
    naibu = hyoji + (100 * (10 - N)) N >= 10 N 10 naibu = hyoji naibu hyoji naibu = hyoji + (100 * (10 - N)) naibu hyoji + (100 * (10 - N)) hyoji 100 * (10 - N) 100 10 - N 10 N print(naibu) print naibu naibu = hyoji + (100 * (10 - N)) hyoji + (100 * (10 - N)) naibu naibu = hyoji hyoji naibu hyoji = map(int, input().split()) map(int, input().split()) hyoji N, hyoji = map(int, input().split()) map(int, input().split()) N
N, hyoji = map(int, input().split())

if N >= 10:
    naibu = hyoji
else:
    naibu = hyoji + (100 * (10 - N))

print(naibu)
