import fileinput

n, r = map(int, input().split())

if n >= 10:
    print(r)
else:
    rr = r + 100 * (10 - n)
    print(rr)
 import fileinput fileinput n, r = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split r if n >= 10:
    print(r)
else:
    rr = r + 100 * (10 - n)
    print(rr) n >= 10 n 10 print(r) print r rr = r + 100 * (10 - n) rr r + 100 * (10 - n) r 100 * (10 - n) 100 10 - n 10 n print(rr) print rr r = map(int, input().split()) map(int, input().split()) r rr = r + 100 * (10 - n) r + 100 * (10 - n) rr n, r = map(int, input().split()) map(int, input().split()) n
import fileinput

n, r = map(int, input().split())

if n >= 10:
    print(r)
else:
    rr = r + 100 * (10 - n)
    print(rr)

