def main():



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

    if N >= 10:

        return R

    else:

        return R + 100 * (10-N)



if __name__ == '__main__':

    print((main()))

def main():



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

    if N >= 10: return R

    return R + 100 * (10 - N)



if __name__ == '__main__':

    print((main()))

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


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

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


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

-    else: -        return R + 100 * (10 - N) +    return R + 100 * (10 - N)