N,R = map(int,input().split())

if N<10:
    x=R+(100*(10-N))
    print(x)
    exit()
print(R) N,R = map(int,input().split()) N map(int,input().split()) map int input().split() ().split () input split R if N<10:
    x=R+(100*(10-N))
    print(x)
    exit() N<10 N 10 x=R+(100*(10-N)) x R+(100*(10-N)) R 100*(10-N) 100 10-N 10 N print(x) print x exit() exit print(R) print R R = map(int,input().split()) map(int,input().split()) R N,R = map(int,input().split()) map(int,input().split()) N x=R+(100*(10-N)) R+(100*(10-N)) x
N,R = map(int,input().split())

if N<10:
    x=R+(100*(10-N))
    print(x)
    exit()
print(R)