import sys
input = sys.stdin.readline
input = sys.stdin.buffer.readline

def RD(): return sys.stdin.read()
def II(): return int(input())
def MI(): return map(int,input().split())
def LI(): return list(map(int,input().split()))
def TI(): return tuple(map(int,input().split()))


def main():
    N,R = MI()
    ans = R + 100*(10-N)

    if N<10:
        print(ans)
    else:
        print(R)



if __name__ == "__main__":
	main() import sys sys input = sys.stdin.readline input sys.stdin.readline sys.stdin sys stdin readline input = sys.stdin.buffer.readline input sys.stdin.buffer.readline sys.stdin.buffer sys.stdin sys stdin buffer readline def RD(): return sys.stdin.read() RD def II(): return int(input()) II def MI(): return map(int,input().split()) MI def LI(): return list(map(int,input().split())) LI def TI(): return tuple(map(int,input().split())) TI def main():
    N,R = MI()
    ans = R + 100*(10-N)

    if N<10:
        print(ans)
    else:
        print(R) main N,R = MI() N MI() MI R ans = R + 100*(10-N) ans R + 100*(10-N) R 100*(10-N) 100 10-N 10 N if N<10:
        print(ans)
    else:
        print(R) N<10 N 10 print(ans) print ans print(R) print R if __name__ == "__main__":
	main() __name__ == "__main__" __name__ "__main__" main() main def RD(): return sys.stdin.read() def RD(): return sys.stdin.read() RD def II(): return int(input()) def II(): return int(input()) II def TI(): return tuple(map(int,input().split())) def TI(): return tuple(map(int,input().split())) TI input = sys.stdin.buffer.readline sys.stdin.buffer.readline input def LI(): return list(map(int,input().split())) def LI(): return list(map(int,input().split())) LI def main():
    N,R = MI()
    ans = R + 100*(10-N)

    if N<10:
        print(ans)
    else:
        print(R) def main():
    N,R = MI()
    ans = R + 100*(10-N)

    if N<10:
        print(ans)
    else:
        print(R) main input = sys.stdin.readline sys.stdin.readline input def MI(): return map(int,input().split()) def MI(): return map(int,input().split()) MI
import sys
input = sys.stdin.readline
input = sys.stdin.buffer.readline

def RD(): return sys.stdin.read()
def II(): return int(input())
def MI(): return map(int,input().split())
def LI(): return list(map(int,input().split()))
def TI(): return tuple(map(int,input().split()))


def main():
    N,R = MI()
    ans = R + 100*(10-N)

    if N<10:
        print(ans)
    else:
        print(R)



if __name__ == "__main__":
	main()