N, R = map(int, input().split());

if N >= 10:
  print(R);
else:
  dif= 100 * (10 - N);
  print(R + dif); N, R = map(int, input().split()) N map(int, input().split()) map int input().split() ().split () input split R if N >= 10:
  print(R);
else:
  dif= 100 * (10 - N);
  print(R + dif); N >= 10 N 10 print(R) print R dif= 100 * (10 - N) dif 100 * (10 - N) 100 10 - N 10 N print(R + dif) print R + dif R dif N, R = map(int, input().split()) map(int, input().split()) N R = map(int, input().split()) map(int, input().split()) R dif= 100 * (10 - N) 100 * (10 - N) dif
N, R = map(int, input().split());

if N >= 10:
  print(R);
else:
  dif= 100 * (10 - N);
  print(R + dif);