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

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

if n>=10:
    print(r)
elif n<=9:
    a=100*(10-n)+r
    print(a)
    
