#include using namespace std; using i64 = int64_t; i64 M; i64 f(i64 x, i64 m) { return (x - m + M) / M; } int main(void) { i64 lo, hi; scanf("%ld%ld%ld", &lo, &hi, &M); for(int m=0; m