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

tmp = 100*(10-N)

if tmp >= 0:
  print(100*(10-N) + R)
else:
  print(R) 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 tmp = 100*(10-N) tmp 100*(10-N) 100 10-N 10 N if tmp >= 0:
  print(100*(10-N) + R)
else:
  print(R) tmp >= 0 tmp 0 print(100*(10-N) + R) print 100*(10-N) + R 100*(10-N) 100 10-N 10 N R print(R) print R 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 tmp = 100*(10-N) 100*(10-N) tmp
N,R = (int(i) for i in input().split())

tmp = 100*(10-N)

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