   program abc156a
      implicit none
      integer::N,R

      read *,N,R
      if (N>=10) then
         print *,R
      else
         print *,100*(10-N)+R
      end if
      stop

   end program abc156a