"use strict";
function Main(input) {
  input = input.split(" ").map(Number);
  let result = input[0] <= 10 ? input[1] + 100 * (10 - input[0]) : input[1];
  console.log(result);

}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));