N, R = tuple(int(n) for n in input().split())

print(R + max(0, 100*(10-N))) N, R = tuple(int(n) for n in input().split()) N tuple(int(n) for n in input().split()) tuple int(n) int n R print(R + max(0, 100*(10-N))) print R + max(0, 100*(10-N)) R max(0, 100*(10-N)) max 0 100*(10-N) 100 10-N 10 N N, R = tuple(int(n) for n in input().split()) tuple(int(n) for n in input().split()) N R = tuple(int(n) for n in input().split()) tuple(int(n) for n in input().split()) R
N, R = tuple(int(n) for n in input().split())

print(R + max(0, 100*(10-N)))
