from sys import stdin


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


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


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


if __name__ == "__main__":
    main()