score = list(map(int,input().split()))
if score[0] < 10:
    answer = score[1] + 100*(10-score[0])
else:
    answer = score[1]
print(answer) score = list(map(int,input().split())) score list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split if score[0] < 10:
    answer = score[1] + 100*(10-score[0])
else:
    answer = score[1] score[0] < 10 score[0] score 0 10 answer = score[1] + 100*(10-score[0]) answer score[1] + 100*(10-score[0]) score[1] score 1 100*(10-score[0]) 100 10-score[0] 10 score[0] score 0 answer = score[1] answer score[1] score 1 print(answer) print answer answer = score[1] score[1] answer answer = score[1] + 100*(10-score[0]) score[1] + 100*(10-score[0]) answer score = list(map(int,input().split())) list(map(int,input().split())) score
score = list(map(int,input().split()))
if score[0] < 10:
    answer = score[1] + 100*(10-score[0])
else:
    answer = score[1]
print(answer)