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