#include <iostream>
using namespace std;
int main(){
    int a,b,c;
    cin >> a >> b >> c;
    for(a<= b; i += 1){
        if (c % a == 0){
            cout << a << " ";
        }
    }
    cout << endl;
    return 0;
}
