a,b=map(int,input().split())
c=0
res = 0
if a >=10:
  print(b)
else:
  c = 100 * (10-a)
  res = b+c
  print(res) a,b=map(int,input().split()) a map(int,input().split()) map int input().split() ().split () input split b c=0 c 0 res = 0 res 0 if a >=10:
  print(b)
else:
  c = 100 * (10-a)
  res = b+c
  print(res) a >=10 a 10 print(b) print b c = 100 * (10-a) c 100 * (10-a) 100 10-a 10 a res = b+c res b+c b c print(res) print res b=map(int,input().split()) map(int,input().split()) b c = 100 * (10-a) 100 * (10-a) c a,b=map(int,input().split()) map(int,input().split()) a res = b+c b+c res c=0 0 c res = 0 0 res
a,b=map(int,input().split())
c=0
res = 0
if a >=10:
  print(b)
else:
  c = 100 * (10-a)
  res = b+c
  print(res)