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