n, r = map(int,input().split())

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

if n >= 10:
    in_rate = r
elif n < 10:
    in_rate = r + 100*(10-n)
    
print(in_rate)