[N, R] = [int(i) for i in input().split()]
print(R + 100*max(10-N, 0)) 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, R] N R [int(i) for i in input().split()] print(R + 100*max(10-N, 0)) print R + 100*max(10-N, 0) R 100*max(10-N, 0) 100 max(10-N, 0) max 10-N 10 N 0
[N, R] = [int(i) for i in input().split()]
print(R + 100*max(10-N, 0))