N, R = map(int, input().split())
# N回参加、表示レーティングR
if N >= 10:
  rate = R
else:
  rate = R + 100 * (10 - N)
print(rate) N, R = map(int, input().split()) N map(int, input().split()) map int input().split() ().split () input split R if N >= 10:
  rate = R
else:
  rate = R + 100 * (10 - N) N >= 10 N 10 rate = R rate R rate = R + 100 * (10 - N) rate R + 100 * (10 - N) R 100 * (10 - N) 100 10 - N 10 N print(rate) print rate R = map(int, input().split()) map(int, input().split()) R N, R = map(int, input().split()) map(int, input().split()) N rate = R + 100 * (10 - N) R + 100 * (10 - N) rate rate = R R rate
N, R = map(int, input().split())
# N回参加、表示レーティングR
if N >= 10:
  rate = R
else:
  rate = R + 100 * (10 - N)
print(rate)