from sys import stdin
def main():
    #入力
    readline=stdin.readline
    n,r=map(int,readline().split())
    if n>=10:
        print(r)
    else:
        print(r+100*(10-n))
        
if __name__=="__main__":
    main() from sys import stdin def main():
    #入力
    readline=stdin.readline
    n,r=map(int,readline().split())
    if n>=10:
        print(r)
    else:
        print(r+100*(10-n))
         main readline=stdin.readline readline stdin.readline stdin readline n,r=map(int,readline().split()) n map(int,readline().split()) map int readline().split() ().split () readline split r if n>=10:
        print(r)
    else:
        print(r+100*(10-n))
         n>=10 n 10 print(r) print r print(r+100*(10-n)) print 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():
    #入力
    readline=stdin.readline
    n,r=map(int,readline().split())
    if n>=10:
        print(r)
    else:
        print(r+100*(10-n))
         def main():
    #入力
    readline=stdin.readline
    n,r=map(int,readline().split())
    if n>=10:
        print(r)
    else:
        print(r+100*(10-n))
         main
from sys import stdin
def main():
    #入力
    readline=stdin.readline
    n,r=map(int,readline().split())
    if n>=10:
        print(r)
    else:
        print(r+100*(10-n))
        
if __name__=="__main__":
    main()