"use strict";
const Main = (input) =>{
   let xs = input.trim().split(' ').map(v=>parseInt(v,10));
   let ans = 0;
   if(xs[0]<=10){
   	 ans = xs[1]+(10 - xs[0])*100
   }else{
     ans = xs[1];
   }
   console.log(ans);
}
Main(require('fs').readFileSync('/dev/stdin','utf8'));