def beginner():
    # 入力
    N, R = map(int, input().split())
    # 処理
    if N >= 10:
        return R
    else:
        return R + 100 * (10 - N)

result = beginner()
print(result) def beginner():
    # 入力
    N, R = map(int, input().split())
    # 処理
    if N >= 10:
        return R
    else:
        return R + 100 * (10 - N) beginner N, R = map(int, input().split()) N map(int, input().split()) map int input().split() ().split () input split R if N >= 10:
        return R
    else:
        return R + 100 * (10 - N) N >= 10 N 10 return R R return R + 100 * (10 - N) R + 100 * (10 - N) R 100 * (10 - N) 100 10 - N 10 N result = beginner() result beginner() beginner print(result) print result result = beginner() beginner() result def beginner():
    # 入力
    N, R = map(int, input().split())
    # 処理
    if N >= 10:
        return R
    else:
        return R + 100 * (10 - N) def beginner():
    # 入力
    N, R = map(int, input().split())
    # 処理
    if N >= 10:
        return R
    else:
        return R + 100 * (10 - N) beginner
def beginner():
    # 入力
    N, R = map(int, input().split())
    # 処理
    if N >= 10:
        return R
    else:
        return R + 100 * (10 - N)

result = beginner()
print(result)