# Beginner
def getInnerRating(N, R):
    return R + (100 * (10 - min(10, N)))

N, R = map(int, input().split())
ans = getInnerRating(N, R)
print(ans) def getInnerRating(N, R):
    return R + (100 * (10 - min(10, N))) getInnerRating return R + (100 * (10 - min(10, N))) R + (100 * (10 - min(10, N))) R 100 * (10 - min(10, N)) 100 10 - min(10, N) 10 min(10, N) min 10 N N N R R N, R = map(int, input().split()) N map(int, input().split()) map int input().split() ().split () input split R ans = getInnerRating(N, R) ans getInnerRating(N, R) getInnerRating N R print(ans) print ans N, R = map(int, input().split()) map(int, input().split()) N R = map(int, input().split()) map(int, input().split()) R ans = getInnerRating(N, R) getInnerRating(N, R) ans def getInnerRating(N, R):
    return R + (100 * (10 - min(10, N))) def getInnerRating(N, R):
    return R + (100 * (10 - min(10, N))) getInnerRating
# Beginner
def getInnerRating(N, R):
    return R + (100 * (10 - min(10, N)))

N, R = map(int, input().split())
ans = getInnerRating(N, R)
print(ans)