from sys import exit

N, R = [int(x) for x in input().split()]

if N >= 10:
    print(R)
    exit()
else:
    print(R + (100 * (10 - N)))
    exit() from sys import exit int(x) for x in input().split() for x in input().split() x input().split() ().split () input split for x in input().split() int(x) int x N, R = [int(x) for x in input().split()] N [int(x) for x in input().split()] R if N >= 10:
    print(R)
    exit()
else:
    print(R + (100 * (10 - N)))
    exit() N >= 10 N 10 print(R) print R exit() exit print(R + (100 * (10 - N))) print R + (100 * (10 - N)) R 100 * (10 - N) 100 10 - N 10 N exit() exit N, R = [int(x) for x in input().split()] [int(x) for x in input().split()] N R = [int(x) for x in input().split()] [int(x) for x in input().split()] R
from sys import exit

N, R = [int(x) for x in input().split()]

if N >= 10:
    print(R)
    exit()
else:
    print(R + (100 * (10 - N)))
    exit()
