n,r = list(map(int, input().split()))

if n < 10:
    inside_score = r + 100*(10 - n)
    print(inside_score)
else:
    print(r) n,r = list(map(int, input().split())) n list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split r if n < 10:
    inside_score = r + 100*(10 - n)
    print(inside_score)
else:
    print(r) n < 10 n 10 inside_score = r + 100*(10 - n) inside_score r + 100*(10 - n) r 100*(10 - n) 100 10 - n 10 n print(inside_score) print inside_score print(r) print r n,r = list(map(int, input().split())) list(map(int, input().split())) n r = list(map(int, input().split())) list(map(int, input().split())) r inside_score = r + 100*(10 - n) r + 100*(10 - n) inside_score
n,r = list(map(int, input().split()))

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