importPackage(java.io);
importPackage(java.lang);

var reader = new BufferedReader( new InputStreamReader(System['in']) );
var line = reader.readLine();

var inputs = line.split(' ');
var N = parseInt(inputs[0]);//sanka ninzu
var R = parseInt(inputs[1]);//hyouji rating

if(N <= 10){
	R = R + 100*(10-N);
}
System.out.println(R);
