import sys

N, R = map(int, sys.stdin.readline().split())
print(R if 10 <= N else R + 100 * (10 - N)) import sys sys N, R = map(int, sys.stdin.readline().split()) N map(int, sys.stdin.readline().split()) map int sys.stdin.readline().split() sys.stdin.readline().split sys.stdin.readline() sys.stdin.readline sys.stdin sys stdin readline split R print(R if 10 <= N else R + 100 * (10 - N)) print R if 10 <= N else R + 100 * (10 - N) 10 <= N 10 N R R + 100 * (10 - N) R 100 * (10 - N) 100 10 - N 10 N R = map(int, sys.stdin.readline().split()) map(int, sys.stdin.readline().split()) R N, R = map(int, sys.stdin.readline().split()) map(int, sys.stdin.readline().split()) N
import sys

N, R = map(int, sys.stdin.readline().split())
print(R if 10 <= N else R + 100 * (10 - N))