Three integers l, r and k, separated by space.
The value of the expression.
1 5 1
10
1 10 2
48
1 100 3
2302
1 <= l, r, k <= 1000