#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c;
  int i;
  cin >> a >> b >> c;
  for (i = 1; i <= c; i++) {
    if (c % i == 0 && a <= i && b >= i) {
      cout << i << " " << endl;
    }
  }
}
