      PROGRAM piyo
      IMPLICIT NONE
      
      integer :: n,r,ans
      
      read*,n,r
      
      ans = r
      
      if( n<10) ans = ans + 100*(10-n)
      
      print*,ans
      
      
      
      END PROGRAM