from sys import stdin, setrecursionlimit


def main():
    input = stdin.buffer.readline
    n, r = map(int, input().split())
    if n >= 10:
        print(r)
    else:
        print(r + 100 * (10 - n))


if __name__ == "__main__":
    setrecursionlimit(10000)
    main() from sys import stdin, setrecursionlimit def main():
    input = stdin.buffer.readline
    n, r = map(int, input().split())
    if n >= 10:
        print(r)
    else:
        print(r + 100 * (10 - n)) main input = stdin.buffer.readline input stdin.buffer.readline stdin.buffer stdin buffer readline n, r = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input 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 if __name__ == "__main__":
    setrecursionlimit(10000)
    main() __name__ == "__main__" __name__ "__main__" setrecursionlimit(10000) setrecursionlimit 10000 main() main def main():
    input = stdin.buffer.readline
    n, r = map(int, input().split())
    if n >= 10:
        print(r)
    else:
        print(r + 100 * (10 - n)) def main():
    input = stdin.buffer.readline
    n, r = map(int, input().split())
    if n >= 10:
        print(r)
    else:
        print(r + 100 * (10 - n)) main
from sys import stdin, setrecursionlimit


def main():
    input = stdin.buffer.readline
    n, r = map(int, input().split())
    if n >= 10:
        print(r)
    else:
        print(r + 100 * (10 - n))


if __name__ == "__main__":
    setrecursionlimit(10000)
    main()
