N,R = (input().split())
X = int(N)
Y = int(R)
a = (Y + (100 * (10 - X)) )
if X >= 10:
    print(Y)
else:
    print(a) N,R = (input().split()) N input().split() ().split () input split R X = int(N) X int(N) int N Y = int(R) Y int(R) int R a = (Y + (100 * (10 - X)) ) a Y + (100 * (10 - X)) Y 100 * (10 - X) 100 10 - X 10 X if X >= 10:
    print(Y)
else:
    print(a) X >= 10 X 10 print(Y) print Y print(a) print a N,R = (input().split()) input().split() N X = int(N) int(N) X Y = int(R) int(R) Y R = (input().split()) input().split() R a = (Y + (100 * (10 - X)) ) Y + (100 * (10 - X)) a
N,R = (input().split())
X = int(N)
Y = int(R)
a = (Y + (100 * (10 - X)) )
if X >= 10:
    print(Y)
else:
    print(a)