"use strict";

const main = arg => {
    // 標準入力の不要な空白と改行を削除し、配列に格納する
    const input = arg.trim().split(" ");
    const times = parseInt(input[0], 10);
    const displayR = parseInt(input[1], 10);

    const innerR = displayR + (1000 - (100 * times));

    (times >= 10) ? console.log(displayR) : console.log(innerR);
    //console.log(times, displayR, innerR);
}

main(require('fs').readFileSync('/dev/stdin', 'utf8'));  