import sys
input = sys.stdin.readline


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


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


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


if __name__ == '__main__':
    main()
