# N = int(input())
N, R = [int(i) for i in input().split()]
ans = R if N >= 10 else R + 100 * (10 - N)
print(ans) int(i) for i in input().split() for i in input().split() i input().split() ().split () input split for i in input().split() int(i) int i N, R = [int(i) for i in input().split()] N [int(i) for i in input().split()] R ans = R if N >= 10 else R + 100 * (10 - N) ans R if N >= 10 else R + 100 * (10 - N) N >= 10 N 10 R R + 100 * (10 - N) R 100 * (10 - N) 100 10 - N 10 N print(ans) print ans R = [int(i) for i in input().split()] [int(i) for i in input().split()] R N, R = [int(i) for i in input().split()] [int(i) for i in input().split()] N ans = R if N >= 10 else R + 100 * (10 - N) R if N >= 10 else R + 100 * (10 - N) ans
# N = int(input())
N, R = [int(i) for i in input().split()]
ans = R if N >= 10 else R + 100 * (10 - N)
print(ans)
