#include #include using namespace std; int main() { int n; int sum = 0, re = 0; cin >>n; vector a(n); for (int i=1; i <= n; i++) { if (n % i == 0) a[i] = i; sum += a[i]; } re = sum / n; cout << sum / re << endl; return 0; }