K,R = map (int, input ().split ())
if K < 10:
  print (R+100*(10-K))
else:
  print (R) K,R = map (int, input ().split ()) K map (int, input ().split ()) map int input ().split () ().split () input split R if K < 10:
  print (R+100*(10-K))
else:
  print (R) K < 10 K 10 print (R+100*(10-K)) print R+100*(10-K) R 100*(10-K) 100 10-K 10 K print (R) print R K,R = map (int, input ().split ()) map (int, input ().split ()) K R = map (int, input ().split ()) map (int, input ().split ()) R
K,R = map (int, input ().split ())
if K < 10:
  print (R+100*(10-K))
else:
  print (R)