def main():

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

    if N>=10:

        print(R)

    else:

        print((R+100*(10-N)))

if __name__=="__main__":

    main()
from sys import stdin

def main():

    #入力

    readline=stdin.readline

    n,r=list(map(int,readline().split()))

    if n>=10:

        print(r)

    else:

        print((r+100*(10-n)))

        

if __name__=="__main__":

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


if __name__ == "__main__":
    main()

from sys import stdin


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


if __name__ == "__main__":
    main()

+from sys import stdin + + -    N, R = list(map(int, input().split())) -    if N >= 10: -        print(R) +    # 入力 +    readline = stdin.readline +    n, r = list(map(int, readline().split())) +    if n >= 10: +        print(r) -        print((R + 100 * (10 - N))) +        print((r + 100 * (10 - n)))