inputted = list(map(int, input().split()))
N = inputted[0]
R = inputted[1]

internal_rating = lambda R, K: max(R, R + 100 * (10 - K))

answer = internal_rating(R, N)

print(answer) inputted = list(map(int, input().split())) inputted list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split N = inputted[0] N inputted[0] inputted 0 R = inputted[1] R inputted[1] inputted 1 internal_rating = lambda R, K: max(R, R + 100 * (10 - K)) internal_rating lambda R, K: max(R, R + 100 * (10 - K)) max(R, R + 100 * (10 - K)) max R R + 100 * (10 - K) R 100 * (10 - K) 100 10 - K 10 K R K answer = internal_rating(R, N) answer internal_rating(R, N) internal_rating R N print(answer) print answer R = inputted[1] inputted[1] R inputted = list(map(int, input().split())) list(map(int, input().split())) inputted N = inputted[0] inputted[0] N internal_rating = lambda R, K: max(R, R + 100 * (10 - K)) lambda R, K: max(R, R + 100 * (10 - K)) internal_rating answer = internal_rating(R, N) internal_rating(R, N) answer
inputted = list(map(int, input().split()))
N = inputted[0]
R = inputted[1]

internal_rating = lambda R, K: max(R, R + 100 * (10 - K))

answer = internal_rating(R, N)

print(answer)
