function Main(input) {
  input = input.trim().split(' ').map(data=>parseInt(data));
  result = input[1] + (100 * ( 10 - Math.min(input[0],10) ) );
  console.log(result);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));