def main():
    n, r = map(int, input().split())
    if n >= 10:
        print(r)
    else:
        print(r-100*(n-10))

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

if __name__ == "__main__":
    main()
