#include using namespace std; #define rep(i, n, o) for(int i = o;i < (n);i++) #define ou(x) cout << x << endl #define ll long long #define re return 0 int main(){ int n, a = 0; double b; cin >> n; rep(i, n + 1, 1){ if(n % i == 0) { a += i; } } b = (double)a / (double)n; int c = (double)a / (double)b; ou(c); re; }