#include <iostream> 
using namespace std;
//Divisors of the Natural Number n
int main() {
	int n;
    cout << "n = "; 
    cin >> n;
    for (int i=1; i<n+1; i++) {
    	if (n % i == 0) {
    		cout << i << endl;
		}
	}
    return 0;
}

