times, disp_rate = map(int, input().split())

int_rate = 0

# 参加回数が10回未満の場合
if times < 10:
    # 内部レートを計算する
    int_rate = disp_rate + 100 * (10-times)
else:
    int_rate = disp_rate

print(int_rate) times, disp_rate = map(int, input().split()) times map(int, input().split()) map int input().split() ().split () input split disp_rate int_rate = 0 int_rate 0 if times < 10:
    # 内部レートを計算する
    int_rate = disp_rate + 100 * (10-times)
else:
    int_rate = disp_rate times < 10 times 10 int_rate = disp_rate + 100 * (10-times) int_rate disp_rate + 100 * (10-times) disp_rate 100 * (10-times) 100 10-times 10 times int_rate = disp_rate int_rate disp_rate print(int_rate) print int_rate int_rate = disp_rate + 100 * (10-times) disp_rate + 100 * (10-times) int_rate int_rate = disp_rate disp_rate int_rate times, disp_rate = map(int, input().split()) map(int, input().split()) times disp_rate = map(int, input().split()) map(int, input().split()) disp_rate int_rate = 0 0 int_rate
times, disp_rate = map(int, input().split())

int_rate = 0

# 参加回数が10回未満の場合
if times < 10:
    # 内部レートを計算する
    int_rate = disp_rate + 100 * (10-times)
else:
    int_rate = disp_rate

print(int_rate)