def input_num():
	ls = input().strip().split(" ")
	return [int(e) for e in ls]

n,r = input_num()
if n >= 10:
	print(r)
else:
	print(r+100*(10-n)) def input_num():
	ls = input().strip().split(" ")
	return [int(e) for e in ls] input_num ls = input().strip().split(" ") ls input().strip().split(" ") ().strip().split ().strip() ().strip () input strip split " " int(e) for e in ls for e in ls e ls for e in ls int(e) int e return [int(e) for e in ls] [int(e) for e in ls] n,r = input_num() n input_num() input_num r if n >= 10:
	print(r)
else:
	print(r+100*(10-n)) n >= 10 n 10 print(r) print r print(r+100*(10-n)) print r+100*(10-n) r 100*(10-n) 100 10-n 10 n n,r = input_num() input_num() n r = input_num() input_num() r def input_num():
	ls = input().strip().split(" ")
	return [int(e) for e in ls] def input_num():
	ls = input().strip().split(" ")
	return [int(e) for e in ls] input_num
def input_num():
	ls = input().strip().split(" ")
	return [int(e) for e in ls]

n,r = input_num()
if n >= 10:
	print(r)
else:
	print(r+100*(10-n))
