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