n,r=map(int,input().split())
inn=0
if n<10:
  inn=100*(10-n)
  print(r+inn)
else:
  print(r) n,r=map(int,input().split()) n map(int,input().split()) map int input().split() ().split () input split r inn=0 inn 0 if n<10:
  inn=100*(10-n)
  print(r+inn)
else:
  print(r) n<10 n 10 inn=100*(10-n) inn 100*(10-n) 100 10-n 10 n print(r+inn) print r+inn r inn print(r) print r n,r=map(int,input().split()) map(int,input().split()) n inn=100*(10-n) 100*(10-n) inn r=map(int,input().split()) map(int,input().split()) r inn=0 0 inn
n,r=map(int,input().split())
inn=0
if n<10:
  inn=100*(10-n)
  print(r+inn)
else:
  print(r)