N, R = (int(x) for x in input().split())
if N >= 10:
  result = R
else:
  result = R + 100*(10-N)
print(result) int(x) for x in input().split() for x in input().split() x input().split() ().split () input split for x in input().split() int(x) int x N, R = (int(x) for x in input().split()) N (int(x) for x in input().split()) R if N >= 10:
  result = R
else:
  result = R + 100*(10-N) N >= 10 N 10 result = R result R result = R + 100*(10-N) result R + 100*(10-N) R 100*(10-N) 100 10-N 10 N print(result) print result R = (int(x) for x in input().split()) (int(x) for x in input().split()) R result = R + 100*(10-N) R + 100*(10-N) result result = R R result N, R = (int(x) for x in input().split()) (int(x) for x in input().split()) N
N, R = (int(x) for x in input().split())
if N >= 10:
  result = R
else:
  result = R + 100*(10-N)
print(result)