def main():
    import sys
    input = sys.stdin.readline

    N, R = map(int, input().split())
    if N < 10:
        K = N
    else:
        K = 10
    print(R+100*(10-K))


if __name__ == "__main__":
    main() def main():
    import sys
    input = sys.stdin.readline

    N, R = map(int, input().split())
    if N < 10:
        K = N
    else:
        K = 10
    print(R+100*(10-K)) main import sys sys input = sys.stdin.readline input sys.stdin.readline sys.stdin sys stdin readline N, R = map(int, input().split()) N map(int, input().split()) map int input().split() ().split () input split R if N < 10:
        K = N
    else:
        K = 10
     N < 10 N 10 K = N K N K = 10 K 10 print(R+100*(10-K)) print R+100*(10-K) R 100*(10-K) 100 10-K 10 K if __name__ == "__main__":
    main() __name__ == "__main__" __name__ "__main__" main() main def main():
    import sys
    input = sys.stdin.readline

    N, R = map(int, input().split())
    if N < 10:
        K = N
    else:
        K = 10
    print(R+100*(10-K)) def main():
    import sys
    input = sys.stdin.readline

    N, R = map(int, input().split())
    if N < 10:
        K = N
    else:
        K = 10
    print(R+100*(10-K)) main
def main():
    import sys
    input = sys.stdin.readline

    N, R = map(int, input().split())
    if N < 10:
        K = N
    else:
        K = 10
    print(R+100*(10-K))


if __name__ == "__main__":
    main()
