#include <iostream>
using namespace std;
int Rates(int A){
     if (A>=10){
          return 0;
     }else{
          return 100*(10-A);
     }
}
int main(){
     int N,R;
     cin >>N>>R;
     cout <<R+Rates(N)<<endl;
}

#include <iostream>
#include <string>
#include <map>
#include <algorithm>
#include <vector>

#define ll long long

int main()
{
    int N, R;
    std::cin >> N >> R;

    if(N >= 10) {
        std::cout << R << std::endl;
    }
    else {
        std::cout << R + (10-N)*100 << std::endl;
    }
}