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

if n > 10:
    print(r)
else:
    a = r + (100 * (10-n))
    print(a)
 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:
    a = r + (100 * (10-n))
    print(a) n > 10 n 10 print(r) print r a = r + (100 * (10-n)) a r + (100 * (10-n)) r 100 * (10-n) 100 10-n 10 n print(a) print a n,r = map(int,input().split()) map(int,input().split()) n a = r + (100 * (10-n)) r + (100 * (10-n)) a r = map(int,input().split()) map(int,input().split()) r
n,r = map(int,input().split())

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

