import sys


def main():
    input = sys.stdin.buffer.readline
    n, r = map(int, input().split()) 
    print(r if n > 9 else r + 100 * (10 - n))



if __name__ == "__main__":
    main() import sys sys def main():
    input = sys.stdin.buffer.readline
    n, r = map(int, input().split()) 
    print(r if n > 9 else r + 100 * (10 - n)) main input = sys.stdin.buffer.readline input sys.stdin.buffer.readline sys.stdin.buffer sys.stdin sys stdin buffer readline n, r = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split r print(r if n > 9 else r + 100 * (10 - n)) print r if n > 9 else r + 100 * (10 - n) n > 9 n 9 r r + 100 * (10 - n) r 100 * (10 - n) 100 10 - n 10 n if __name__ == "__main__":
    main() __name__ == "__main__" __name__ "__main__" main() main def main():
    input = sys.stdin.buffer.readline
    n, r = map(int, input().split()) 
    print(r if n > 9 else r + 100 * (10 - n)) def main():
    input = sys.stdin.buffer.readline
    n, r = map(int, input().split()) 
    print(r if n > 9 else r + 100 * (10 - n)) main
import sys


def main():
    input = sys.stdin.buffer.readline
    n, r = map(int, input().split()) 
    print(r if n > 9 else r + 100 * (10 - n))



if __name__ == "__main__":
    main()
