def resolve():
    n, r = list(map(int, input().split()))

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

    if n > 10:
        ans = r
    else:
        ans = r + 100 * (10 - n)
    print(ans) resolve 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 if n > 10:
        ans = r
    else:
        ans = r + 100 * (10 - n)
     n > 10 n 10 ans = r ans r ans = r + 100 * (10 - n) ans r + 100 * (10 - n) r 100 * (10 - n) 100 10 - n 10 n print(ans) print ans resolve() resolve def resolve():
    n, r = list(map(int, input().split()))

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

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

    if n > 10:
        ans = r
    else:
        ans = r + 100 * (10 - n)
    print(ans)
resolve()