def main():
    N, R = map(int, input().split())

    X = R + max(0, 100 * (10 - N))

    print(X)


if __name__ == '__main__':
    main() def main():
    N, R = map(int, input().split())

    X = R + max(0, 100 * (10 - N))

    print(X) main N, R = map(int, input().split()) N map(int, input().split()) map int input().split() ().split () input split R X = R + max(0, 100 * (10 - N)) X R + max(0, 100 * (10 - N)) R max(0, 100 * (10 - N)) max 0 100 * (10 - N) 100 10 - N 10 N print(X) print X if __name__ == '__main__':
    main() __name__ == '__main__' __name__ '__main__' main() main def main():
    N, R = map(int, input().split())

    X = R + max(0, 100 * (10 - N))

    print(X) def main():
    N, R = map(int, input().split())

    X = R + max(0, 100 * (10 - N))

    print(X) main
def main():
    N, R = map(int, input().split())

    X = R + max(0, 100 * (10 - N))

    print(X)


if __name__ == '__main__':
    main()
