from sys import stdin
input = lambda: stdin.readline().rstrip()
n, r = map(int, input().split())
print(r + 100 * max(0, (10 - n))) from sys import stdin input = lambda: stdin.readline().rstrip() input lambda: stdin.readline().rstrip() stdin.readline().rstrip() stdin.readline().rstrip stdin.readline() stdin.readline stdin readline rstrip n, r = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split r print(r + 100 * max(0, (10 - n))) print r + 100 * max(0, (10 - n)) r 100 * max(0, (10 - n)) 100 max(0, (10 - n)) max 0 10 - n 10 n input = lambda: stdin.readline().rstrip() lambda: stdin.readline().rstrip() input n, r = map(int, input().split()) map(int, input().split()) n r = map(int, input().split()) map(int, input().split()) r
from sys import stdin
input = lambda: stdin.readline().rstrip()
n, r = map(int, input().split())
print(r + 100 * max(0, (10 - n)))
