N,R = (int(x) for x in input().split())
if N<10:
    Ins = R+100*(10-N)
else:
    Ins = R
print(Ins) int(x) for x in input().split() for x in input().split() x input().split() ().split () input split for x in input().split() int(x) int x N,R = (int(x) for x in input().split()) N (int(x) for x in input().split()) R if N<10:
    Ins = R+100*(10-N)
else:
    Ins = R N<10 N 10 Ins = R+100*(10-N) Ins R+100*(10-N) R 100*(10-N) 100 10-N 10 N Ins = R Ins R print(Ins) print Ins R = (int(x) for x in input().split()) (int(x) for x in input().split()) R Ins = R R Ins Ins = R+100*(10-N) R+100*(10-N) Ins N,R = (int(x) for x in input().split()) (int(x) for x in input().split()) N
N,R = (int(x) for x in input().split())
if N<10:
    Ins = R+100*(10-N)
else:
    Ins = R
print(Ins)