join,rate=map(int,input().split())
if join>=10:
  print(rate)
else:
  print(rate+100*(10-join)) join,rate=map(int,input().split()) join map(int,input().split()) map int input().split() ().split () input split rate if join>=10:
  print(rate)
else:
  print(rate+100*(10-join)) join>=10 join 10 print(rate) print rate print(rate+100*(10-join)) print rate+100*(10-join) rate 100*(10-join) 100 10-join 10 join rate=map(int,input().split()) map(int,input().split()) rate join,rate=map(int,input().split()) map(int,input().split()) join
join,rate=map(int,input().split())
if join>=10:
  print(rate)
else:
  print(rate+100*(10-join))