import sys
input = lambda: sys.stdin.readline().rstrip()

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

if __name__ == '__main__':
    main() import sys sys input = lambda: sys.stdin.readline().rstrip() input lambda: sys.stdin.readline().rstrip() sys.stdin.readline().rstrip() sys.stdin.readline().rstrip sys.stdin.readline() sys.stdin.readline sys.stdin sys stdin readline rstrip def main():
    n, r = map(int, input().split())
    if n >= 10:
        print(r)
    else:
        print(r + (100*(10-n))) 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*(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__':
    main() __name__ == '__main__' __name__ '__main__' main() main def main():
    n, r = map(int, input().split())
    if n >= 10:
        print(r)
    else:
        print(r + (100*(10-n))) def main():
    n, r = map(int, input().split())
    if n >= 10:
        print(r)
    else:
        print(r + (100*(10-n))) main input = lambda: sys.stdin.readline().rstrip() lambda: sys.stdin.readline().rstrip() input
import sys
input = lambda: sys.stdin.readline().rstrip()

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

if __name__ == '__main__':
    main()