import sys

sys.setrecursionlimit(10 ** 7)
rl = sys.stdin.readline


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


if __name__ == '__main__':
    solve() import sys sys sys.setrecursionlimit(10 ** 7) sys.setrecursionlimit sys setrecursionlimit 10 ** 7 10 7 rl = sys.stdin.readline rl sys.stdin.readline sys.stdin sys stdin readline def solve():
    n, r = map(int,input().split())
    if 10 > n:
        print(r + (100 * (10 - n)))
    else:
        print(r) solve n, r = map(int,input().split()) n map(int,input().split()) map int input().split() ().split () input split r if 10 > n:
        print(r + (100 * (10 - n)))
    else:
        print(r) 10 > n 10 n print(r + (100 * (10 - n))) print r + (100 * (10 - n)) r 100 * (10 - n) 100 10 - n 10 n print(r) print r if __name__ == '__main__':
    solve() __name__ == '__main__' __name__ '__main__' solve() solve rl = sys.stdin.readline sys.stdin.readline rl def solve():
    n, r = map(int,input().split())
    if 10 > n:
        print(r + (100 * (10 - n)))
    else:
        print(r) def solve():
    n, r = map(int,input().split())
    if 10 > n:
        print(r + (100 * (10 - n)))
    else:
        print(r) solve
import sys

sys.setrecursionlimit(10 ** 7)
rl = sys.stdin.readline


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


if __name__ == '__main__':
    solve()
