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