#include <bits/stdc++.h>
int main() {
  int a, b, c, i, count = 0;
  scanf("%d%d%d", &a, &b, &c);
  if (a != b) {
    for (i = a; i <= b; i++) {
      printf("%d\n", i);
      if (c % i == 0)
        count++;
      else
        continue;
    }
  }
  printf("%d\n", count);
  return 0;
}
