open System

[<EntryPoint>]
let main argv =
    let NR = Console.ReadLine().Split() |> Array.map (fun x -> int x)
    let ans = if NR.[0] < 10 then NR.[1] + 100 * (10 - NR.[0]) else NR.[1]
    printfn "%d" ans
    0
