program main
    integer :: n,r
    integer :: ro,rc
    read *,n,r
    ro=r
    if(n<10)then
        rc=ro+100*(10-n)
!        print *,ro,rc
    else
        rc=ro
    end if
    print '(i0)',rc
    stop
end program main