x = [int(x) for x in input().split()]
if (x[0]>=10):
      print(x[1])
else:
      print(x[1]+100*(10-x[0])) 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 x = [int(x) for x in input().split()] x [int(x) for x in input().split()] if (x[0]>=10):
      print(x[1])
else:
      print(x[1]+100*(10-x[0])) x[0]>=10 x[0] x 0 10 print(x[1]) print x[1] x 1 print(x[1]+100*(10-x[0])) print x[1]+100*(10-x[0]) x[1] x 1 100*(10-x[0]) 100 10-x[0] 10 x[0] x 0 x = [int(x) for x in input().split()] [int(x) for x in input().split()] x
x = [int(x) for x in input().split()]
if (x[0]>=10):
      print(x[1])
else:
      print(x[1]+100*(10-x[0]))
