#include<iostream>
#include<stdio.h>
using namespace std;
int main(){
	int a,b;
	scanf("%d %d",&a,&b);
	if(a>=10){
		printf("%d\n",b);
	}
	else{
		int c=b+(10-a)*100;
		printf("%d\n",c);
	}
	return 0;
}
 