n, r = input().split()
n = int(n)
r = int(r)

if n < 10:
    print(r + 100*(10-n))
else:
    print(r) n, r = input().split() n input().split() ().split () input split r n = int(n) n int(n) int n r = int(r) r int(r) int r if n < 10:
    print(r + 100*(10-n))
else:
    print(r) n < 10 n 10 print(r + 100*(10-n)) print r + 100*(10-n) r 100*(10-n) 100 10-n 10 n print(r) print r n, r = input().split() input().split() n r = input().split() input().split() r r = int(r) int(r) r n = int(n) int(n) n
n, r = input().split()
n = int(n)
r = int(r)

if n < 10:
    print(r + 100*(10-n))
else:
    print(r)