module A
  sub Main(byval args() as string)
    dim arr() as string = split(console.readline())
    dim n,r,x as integer
  	n=arr(0):r=arr(1)
    if n>=10 then
      x=r
    else
      x=r+100*(10-n)
    end if
    console.writeline(x)
  end sub
end module