#include<iostream>
using namespace std;
int main()
{
int n;
cin >> n;
for (int i = 2;; i++)
{
for (int j = 3;; j++)
{
if ((i*j == n) && (i*j < 2e10))
{
if (j > i)
cout << j << endl;
else
cout << i << endl;
}
else
return 0;
}
}
system("pause");
return 0;
}