#設定
import sys
input = sys.stdin.buffer.readline

#ライブラリインポート
from collections import defaultdict

con = 10 ** 9 + 7
#入力受け取り
def getlist():
	return list(map(int, input().split()))

#処理内容
def main():
	N, R = getlist()
	if N >= 10:
		print(R)
	else:
		print(R + (10 - N) * 100)
	


if __name__ == '__main__':
	main() import sys sys input = sys.stdin.buffer.readline input sys.stdin.buffer.readline sys.stdin.buffer sys.stdin sys stdin buffer readline from collections import defaultdict con = 10 ** 9 + 7 con 10 ** 9 + 7 10 ** 9 10 9 7 def getlist():
	return list(map(int, input().split()))

#処理内容 getlist return list(map(int, input().split())) list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split def main():
	N, R = getlist()
	if N >= 10:
		print(R)
	else:
		print(R + (10 - N) * 100)
	 main N, R = getlist() N getlist() getlist R if N >= 10:
		print(R)
	else:
		print(R + (10 - N) * 100)
	 N >= 10 N 10 print(R) print R print(R + (10 - N) * 100) print R + (10 - N) * 100 R (10 - N) * 100 10 - N 10 N 100 if __name__ == '__main__':
	main() __name__ == '__main__' __name__ '__main__' main() main con = 10 ** 9 + 7 10 ** 9 + 7 con input = sys.stdin.buffer.readline sys.stdin.buffer.readline input def getlist():
	return list(map(int, input().split()))

#処理内容 def getlist():
	return list(map(int, input().split()))

#処理内容 getlist def main():
	N, R = getlist()
	if N >= 10:
		print(R)
	else:
		print(R + (10 - N) * 100)
	 def main():
	N, R = getlist()
	if N >= 10:
		print(R)
	else:
		print(R + (10 - N) * 100)
	 main
#設定
import sys
input = sys.stdin.buffer.readline

#ライブラリインポート
from collections import defaultdict

con = 10 ** 9 + 7
#入力受け取り
def getlist():
	return list(map(int, input().split()))

#処理内容
def main():
	N, R = getlist()
	if N >= 10:
		print(R)
	else:
		print(R + (10 - N) * 100)
	


if __name__ == '__main__':
	main()