def solve():
    N,R = [int(i) for i in input().split()]
    if N >= 10:
        print(R)
    else:
        print(R+100*(10-N))

if __name__ == "__main__":
    solve() def solve():
    N,R = [int(i) for i in input().split()]
    if N >= 10:
        print(R)
    else:
        print(R+100*(10-N)) solve int(i) for i in input().split() for i in input().split() i input().split() ().split () input split for i in input().split() int(i) int i N,R = [int(i) for i in input().split()] N [int(i) for i in input().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__":
    solve() __name__ == "__main__" __name__ "__main__" solve() solve def solve():
    N,R = [int(i) for i in input().split()]
    if N >= 10:
        print(R)
    else:
        print(R+100*(10-N)) def solve():
    N,R = [int(i) for i in input().split()]
    if N >= 10:
        print(R)
    else:
        print(R+100*(10-N)) solve
def solve():
    N,R = [int(i) for i in input().split()]
    if N >= 10:
        print(R)
    else:
        print(R+100*(10-N))

if __name__ == "__main__":
    solve()