N, R = (int(x) for x in input().split())
if N > 9:
    print(R)
else:
    print(R + (100 * (10 - N))) int(x) for x in input().split() for x in input().split() x input().split() ().split () input split for x in input().split() int(x) int x N, R = (int(x) for x in input().split()) N (int(x) for x in input().split()) R if N > 9:
    print(R)
else:
    print(R + (100 * (10 - N))) N > 9 N 9 print(R) print R print(R + (100 * (10 - N))) print R + (100 * (10 - N)) R 100 * (10 - N) 100 10 - N 10 N N, R = (int(x) for x in input().split()) (int(x) for x in input().split()) N R = (int(x) for x in input().split()) (int(x) for x in input().split()) R
N, R = (int(x) for x in input().split())
if N > 9:
    print(R)
else:
    print(R + (100 * (10 - N)))