
url = "https://atcoder.jp//contests/abc156/tasks/abc156_a"

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

if __name__ == '__main__':
    main() url = "https://atcoder.jp//contests/abc156/tasks/abc156_a" url "https://atcoder.jp//contests/abc156/tasks/abc156_a" def main():
    n, r = list(map(int, input().split()))
    print(r) if n >= 10 else print(r + 100 * (10 - n)) main n, r = list(map(int, input().split())) n list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split r print(r) if n >= 10 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 url = "https://atcoder.jp//contests/abc156/tasks/abc156_a" "https://atcoder.jp//contests/abc156/tasks/abc156_a" url def main():
    n, r = list(map(int, input().split()))
    print(r) if n >= 10 else print(r + 100 * (10 - n)) def main():
    n, r = list(map(int, input().split()))
    print(r) if n >= 10 else print(r + 100 * (10 - n)) main

url = "https://atcoder.jp//contests/abc156/tasks/abc156_a"

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

if __name__ == '__main__':
    main()
