N,P=map(int, input().split())
if N<=9:
    print(100*(10-N)+P)
else:
    print(P) N,P=map(int, input().split()) N map(int, input().split()) map int input().split() ().split () input split P if N<=9:
    print(100*(10-N)+P)
else:
    print(P) N<=9 N 9 print(100*(10-N)+P) print 100*(10-N)+P 100*(10-N) 100 10-N 10 N P print(P) print P P=map(int, input().split()) map(int, input().split()) P N,P=map(int, input().split()) map(int, input().split()) N
N,P=map(int, input().split())
if N<=9:
    print(100*(10-N)+P)
else:
    print(P)