
def main():
    n, r = map(int, input().split(" "))
    print(r+100*(10-min(10,n)))
if __name__ == "__main__":
    main() def main():
    n, r = map(int, input().split(" "))
    print(r+100*(10-min(10,n))) main n, r = map(int, input().split(" ")) n map(int, input().split(" ")) map int input().split(" ") ().split () input split " " r print(r+100*(10-min(10,n))) print r+100*(10-min(10,n)) r 100*(10-min(10,n)) 100 10-min(10,n) 10 min(10,n) min 10 n if __name__ == "__main__":
    main() __name__ == "__main__" __name__ "__main__" main() main def main():
    n, r = map(int, input().split(" "))
    print(r+100*(10-min(10,n))) def main():
    n, r = map(int, input().split(" "))
    print(r+100*(10-min(10,n))) main

def main():
    n, r = map(int, input().split(" "))
    print(r+100*(10-min(10,n)))
if __name__ == "__main__":
    main()