pair = input()
t = pair.split(" ")
t = list(map(int, t))
innerRating = 0

if t[0] >= 10:
    innerRating = t[1]
else:
    innerRating = t[1] + 100*(10 - t[0])

print(innerRating) pair = input() pair input() input t = pair.split(" ") t pair.split(" ") pair.split pair split " " t = list(map(int, t)) t list(map(int, t)) list map(int, t) map int t innerRating = 0 innerRating 0 if t[0] >= 10:
    innerRating = t[1]
else:
    innerRating = t[1] + 100*(10 - t[0]) t[0] >= 10 t[0] t 0 10 innerRating = t[1] innerRating t[1] t 1 innerRating = t[1] + 100*(10 - t[0]) innerRating t[1] + 100*(10 - t[0]) t[1] t 1 100*(10 - t[0]) 100 10 - t[0] 10 t[0] t 0 print(innerRating) print innerRating innerRating = t[1] + 100*(10 - t[0]) t[1] + 100*(10 - t[0]) innerRating t = pair.split(" ") pair.split(" ") t t = list(map(int, t)) list(map(int, t)) t innerRating = 0 0 innerRating innerRating = t[1] t[1] innerRating pair = input() input() pair
pair = input()
t = pair.split(" ")
t = list(map(int, t))
innerRating = 0

if t[0] >= 10:
    innerRating = t[1]
else:
    innerRating = t[1] + 100*(10 - t[0])

print(innerRating)
