#include<cstdio>
#include<algorithm>
typedef long long ll;
ll ans[2000005];
inline ll read() {
	register ll x=0,f=1;register char s=getchar();
	while(s>'9'||s<'0') {if(s=='-') f=-1;s=getchar();}
	while(s>='0'&&s<='9') {x=x*10+s-'0';s=getchar();}
	return x*f;
}
int main() {
	ll n=read(); int cnt=0;
	for(register ll i=1;i*i<=n;++i) {
		if(n%i==0) {
			ans[++cnt]=i;
			if(i!=n/i) ans[++cnt]=n/i;
		}
	}
	std::sort(ans+1,ans+1+cnt);
	for(register int i=1;i<=cnt;++i) printf("%lld\n",ans[i]);
	return 0;
}
#include <bits/stdc++.h>
#define M 1000000007
#define fio                           \
    ios_base::sync_with_stdio(false); \
    cin.tie(NULL);
#define d(x) cout << #x << " " << x << "\n";
#define ll long long int
#define ul unsigned long long int
#define p pair<int, int>
#define ld long double
#define inf INT_MAX
using namespace std;

int main()
{
    ld n;
    cin >> n;
    ld ans = 0.0;
    for (ld i = n - 1; i >= 1; --i)
    {
        ans += (n / i);
    }
    cout << setprecision(9)<<ans;
    return 0;
}