import Control.Applicative

main :: IO ()
main = solve <$> f >>= print
  where
    f = map read <$> words <$> getLine

solve :: [Int] -> Int
solve [n, r]
  | n >= 10 = r
  | otherwise = r + 100 * (10 - n)
