n,r = (int(x) for x in input().split())

if n>=10:
    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>=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 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>=10:
    print(r)
else:
    print(r+(100*(10-n)))