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

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

if __name__ == "__main__":
    main()
