寻找位于区间[l,r]内的x倍数
l, r, x = map(int, input().split()) i = 1 n = x*i while True: if n>r: print(-1) break if l<=n<=r: print(n) break n += x