#include <bits/stdc++.h>
int main() {
  int N, R;
  int inner;
  std::cin >> N >> R;
  if (N >= 10) {
    inner = R;
  } else {
    inner = R + 100 * (10 - N);
  }
  std::cout << inner;
  return 0;
}
