ARGS=input().split()
N=int(ARGS[0])
R=int(ARGS[1])

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

print(str(NAIBU)) ARGS=input().split() ARGS input().split() ().split () input split N=int(ARGS[0]) N int(ARGS[0]) int ARGS[0] ARGS 0 R=int(ARGS[1]) R int(ARGS[1]) int ARGS[1] ARGS 1 if N >= 10:
    NAIBU = R
else:
    NAIBU = R + (100 * (10 - N)) N >= 10 N 10 NAIBU = R NAIBU R NAIBU = R + (100 * (10 - N)) NAIBU R + (100 * (10 - N)) R 100 * (10 - N) 100 10 - N 10 N print(str(NAIBU)) print str(NAIBU) str NAIBU ARGS=input().split() input().split() ARGS R=int(ARGS[1]) int(ARGS[1]) R NAIBU = R + (100 * (10 - N)) R + (100 * (10 - N)) NAIBU N=int(ARGS[0]) int(ARGS[0]) N NAIBU = R R NAIBU
ARGS=input().split()
N=int(ARGS[0])
R=int(ARGS[1])

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

print(str(NAIBU))