# -*- coding: utf-8 -*-

def main():

    N, R = map(int, input().split())

    if N >= 10:
        ans = R

    else:
        ans = R + (100 * (10 - N))

    print(ans)


if __name__ == "__main__":
    main() def main():

    N, R = map(int, input().split())

    if N >= 10:
        ans = R

    else:
        ans = R + (100 * (10 - N))

    print(ans) main N, R = map(int, input().split()) N map(int, input().split()) map int input().split() ().split () input split R if N >= 10:
        ans = R

    else:
        ans = R + (100 * (10 - N))

     N >= 10 N 10 ans = R ans R ans = R + (100 * (10 - N)) ans R + (100 * (10 - N)) R 100 * (10 - N) 100 10 - N 10 N print(ans) print ans if __name__ == "__main__":
    main() __name__ == "__main__" __name__ "__main__" main() main def main():

    N, R = map(int, input().split())

    if N >= 10:
        ans = R

    else:
        ans = R + (100 * (10 - N))

    print(ans) def main():

    N, R = map(int, input().split())

    if N >= 10:
        ans = R

    else:
        ans = R + (100 * (10 - N))

    print(ans) main
# -*- coding: utf-8 -*-

def main():

    N, R = map(int, input().split())

    if N >= 10:
        ans = R

    else:
        ans = R + (100 * (10 - N))

    print(ans)


if __name__ == "__main__":
    main()