#include <iostream>
using namespace std;
void divizori(int n) {
if (n < 2) return;
if (n == 2) cout << "-2 2 ";
for (int i = 2; i <= n / 2; ++i)
if(n%i==0)
cout << -i << " " << i << " ";
}
int main() {
int n;
cin >> n;
//Aplica modulul
if (n < 0)
n *= -1;
cout << "-1 1 ";
//Determina si afiseaza dizivorii proprii
divizori(n);
cout << -n << " " << n;
}