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