#!/usr/bin/env python3

def main():
    N, R = map(int, open(0).read().split())
    
    if N >= 10:
        print(R)
    else:
        print(R + 100 * (10 - N))


main() def main():
    N, R = map(int, open(0).read().split())
    
    if N >= 10:
        print(R)
    else:
        print(R + 100 * (10 - N)) main N, R = map(int, open(0).read().split()) N map(int, open(0).read().split()) map int open(0).read().split() (0).read().split (0).read() (0).read (0) open 0 read split R if N >= 10:
        print(R)
    else:
        print(R + 100 * (10 - N)) N >= 10 N 10 print(R) print R print(R + 100 * (10 - N)) print R + 100 * (10 - N) R 100 * (10 - N) 100 10 - N 10 N main() main def main():
    N, R = map(int, open(0).read().split())
    
    if N >= 10:
        print(R)
    else:
        print(R + 100 * (10 - N)) def main():
    N, R = map(int, open(0).read().split())
    
    if N >= 10:
        print(R)
    else:
        print(R + 100 * (10 - N)) main
#!/usr/bin/env python3

def main():
    N, R = map(int, open(0).read().split())
    
    if N >= 10:
        print(R)
    else:
        print(R + 100 * (10 - N))


main()