import sys

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


def solve():
    N, R = map(int, input().split())

    if N < 10:
        ans = R + 100 * (10 - N)
    else:
        ans = R

    print(ans)


if __name__ == '__main__':
    solve() 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 solve():
    N, R = map(int, input().split())

    if N < 10:
        ans = R + 100 * (10 - N)
    else:
        ans = R

    print(ans) solve 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__':
    solve() __name__ == '__main__' __name__ '__main__' solve() solve input = lambda: sys.stdin.readline().rstrip() lambda: sys.stdin.readline().rstrip() input def solve():
    N, R = map(int, input().split())

    if N < 10:
        ans = R + 100 * (10 - N)
    else:
        ans = R

    print(ans) def solve():
    N, R = map(int, input().split())

    if N < 10:
        ans = R + 100 * (10 - N)
    else:
        ans = R

    print(ans) solve
import sys

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


def solve():
    N, R = map(int, input().split())

    if N < 10:
        ans = R + 100 * (10 - N)
    else:
        ans = R

    print(ans)


if __name__ == '__main__':
    solve()
