#include <bits/stdc++.h>
int main(void) {
  int a, b, c;
  int answer;
  do {
    scanf("%d %d %d", &a, &b, &c);
  } while ((a < 1) || (b < 1) || (c < 1) || (a > 10000) || (b > 10000) ||
           (c > 10000) || (a > b));
  for (answer = 0;; a++) {
    if (a > b) {
      break;
    }
    if (c % a == 0) {
      answer++;
    }
  }
  printf("%d %d %d\n", a, b, c);
  printf("%d\n", answer);
  return 0;
}
