def main():
    n,r = map(int, input().split())
    if n < 10:
        print(r + 100*(10 - n))
    else:
        print(r)
    return
main() def main():
    n,r = map(int, input().split())
    if n < 10:
        print(r + 100*(10 - n))
    else:
        print(r)
    return 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 + 100*(10 - n))
    else:
        print(r)
     n < 10 n 10 print(r + 100*(10 - n)) print r + 100*(10 - n) r 100*(10 - n) 100 10 - n 10 n print(r) print r return main() main def main():
    n,r = map(int, input().split())
    if n < 10:
        print(r + 100*(10 - n))
    else:
        print(r)
    return def main():
    n,r = map(int, input().split())
    if n < 10:
        print(r + 100*(10 - n))
    else:
        print(r)
    return main
def main():
    n,r = map(int, input().split())
    if n < 10:
        print(r + 100*(10 - n))
    else:
        print(r)
    return
main()
