N, R = [int(i) for i in input().split(" ")]

if N >= 10:
  print(R)
else:
  print(R + 100 * (10 - N)) int(i) for i in input().split(" ") for i in input().split(" ") i input().split(" ") ().split () input split " " for i in input().split(" ") int(i) int i N, R = [int(i) for i in input().split(" ")] N [int(i) for i in input().split(" ")] R if N >= 10:
  print(R)
else:
  print(R + 100 * (10 - N)) N >= 10 N 10 print(R) print R print(R + 100 * (10 - N)) print R + 100 * (10 - N) R 100 * (10 - N) 100 10 - N 10 N R = [int(i) for i in input().split(" ")] [int(i) for i in input().split(" ")] R N, R = [int(i) for i in input().split(" ")] [int(i) for i in input().split(" ")] N
N, R = [int(i) for i in input().split(" ")]

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