N,R=[int(i) for i in input().split()]
if N>=10:
    res=R
else:
    res=R+100*(10-N)
print(res) int(i) for i in input().split() for i in input().split() i input().split() ().split () input split for i in input().split() int(i) int i N,R=[int(i) for i in input().split()] N [int(i) for i in input().split()] R if N>=10:
    res=R
else:
    res=R+100*(10-N) N>=10 N 10 res=R res R res=R+100*(10-N) res R+100*(10-N) R 100*(10-N) 100 10-N 10 N print(res) print res R=[int(i) for i in input().split()] [int(i) for i in input().split()] R N,R=[int(i) for i in input().split()] [int(i) for i in input().split()] N res=R+100*(10-N) R+100*(10-N) res res=R R res
N,R=[int(i) for i in input().split()]
if N>=10:
    res=R
else:
    res=R+100*(10-N)
print(res)
