def main():
    strA = input()
    listA = strA.split(" ")

    N = int(listA[0])
    R = int(listA[1])

    nRate = 0
    if N >= 10:
        nRate = R
    else:
        nRate = R + (100 * (10 - N))

    print(nRate)

if __name__ == '__main__':
    main() def main():
    strA = input()
    listA = strA.split(" ")

    N = int(listA[0])
    R = int(listA[1])

    nRate = 0
    if N >= 10:
        nRate = R
    else:
        nRate = R + (100 * (10 - N))

    print(nRate) main strA = input() strA input() input listA = strA.split(" ") listA strA.split(" ") strA.split strA split " " N = int(listA[0]) N int(listA[0]) int listA[0] listA 0 R = int(listA[1]) R int(listA[1]) int listA[1] listA 1 nRate = 0 nRate 0 if N >= 10:
        nRate = R
    else:
        nRate = R + (100 * (10 - N))

     N >= 10 N 10 nRate = R nRate R nRate = R + (100 * (10 - N)) nRate R + (100 * (10 - N)) R 100 * (10 - N) 100 10 - N 10 N print(nRate) print nRate if __name__ == '__main__':
    main() __name__ == '__main__' __name__ '__main__' main() main def main():
    strA = input()
    listA = strA.split(" ")

    N = int(listA[0])
    R = int(listA[1])

    nRate = 0
    if N >= 10:
        nRate = R
    else:
        nRate = R + (100 * (10 - N))

    print(nRate) def main():
    strA = input()
    listA = strA.split(" ")

    N = int(listA[0])
    R = int(listA[1])

    nRate = 0
    if N >= 10:
        nRate = R
    else:
        nRate = R + (100 * (10 - N))

    print(nRate) main
def main():
    strA = input()
    listA = strA.split(" ")

    N = int(listA[0])
    R = int(listA[1])

    nRate = 0
    if N >= 10:
        nRate = R
    else:
        nRate = R + (100 * (10 - N))

    print(nRate)

if __name__ == '__main__':
    main()