a, b, c = [int(x) for x in input().split()]n = a//cif b>=(n+1)*c: print((n+1)*c)else: print(-1)
123 456 100
200
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!