# ABC156A

def f(n, r):
    if n >= 10:
        print(r)
    else:
        print(r + 100 * (10 - n))

n, r = map(int, input().split())
f(n, r) def f(n, r):
    if n >= 10:
        print(r)
    else:
        print(r + 100 * (10 - n)) f if n >= 10:
        print(r)
    else:
        print(r + 100 * (10 - n)) n >= 10 n 10 print(r) print r print(r + 100 * (10 - n)) print r + 100 * (10 - n) r 100 * (10 - n) 100 10 - n 10 n n n r r n, r = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split r f(n, r) f n r def f(n, r):
    if n >= 10:
        print(r)
    else:
        print(r + 100 * (10 - n)) def f(n, r):
    if n >= 10:
        print(r)
    else:
        print(r + 100 * (10 - n)) f n, r = map(int, input().split()) map(int, input().split()) n r = map(int, input().split()) map(int, input().split()) r
# ABC156A

def f(n, r):
    if n >= 10:
        print(r)
    else:
        print(r + 100 * (10 - n))

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