def solve():
    if n>=10:
        return r
    else:
        return r+100*(10-n)


n, r = [int(i) for i in input().split(" ")]
print(solve()) def solve():
    if n>=10:
        return r
    else:
        return r+100*(10-n) solve if n>=10:
        return r
    else:
        return r+100*(10-n) n>=10 n 10 return r r return r+100*(10-n) r+100*(10-n) r 100*(10-n) 100 10-n 10 n int(i) for i in input().split(" ") for i in input().split(" ") i input().split(" ") ().split () input split " " for i in input().split(" ") int(i) int i n, r = [int(i) for i in input().split(" ")] n [int(i) for i in input().split(" ")] r print(solve()) print solve() solve def solve():
    if n>=10:
        return r
    else:
        return r+100*(10-n) def solve():
    if n>=10:
        return r
    else:
        return r+100*(10-n) solve n, r = [int(i) for i in input().split(" ")] [int(i) for i in input().split(" ")] n r = [int(i) for i in input().split(" ")] [int(i) for i in input().split(" ")] r
def solve():
    if n>=10:
        return r
    else:
        return r+100*(10-n)


n, r = [int(i) for i in input().split(" ")]
print(solve())