#define PROBLEM "https://judge.yosupo.jp/problem/enumerate_quotients"
#include"../template.h"voidsolve(){lln;cin>>n;set<ll>s;for(lli=1;i*i<=n;i++){s.insert(i);s.insert(n/i);}cout<<s.size()<<'\n';for(llx:s)cout<<x<<" ";}
#line 1 "NumberTheory/Enumerate_quotients.test.cpp"
#define PROBLEM "https://judge.yosupo.jp/problem/enumerate_quotients"
#line 2 "template.h"
#include<bits/stdc++.h>usingnamespacestd;#define ll long long
#define MOD (ll)(1e9+7)
#define all(x) (x).begin(),(x).end()
#define unique(x) x.erase(unique(all(x)), x.end())
#define INF32 ((1ull<<31)-1)
#define INF64 ((1ull<<63)-1)
#define inf (ll)1e18
#define vi vector<int>
#define pii pair<int, int>
#define pll pair<ll, ll>
#define fi first
#define se second
constintmod=998244353;voidsolve();intmain(){ios_base::sync_with_stdio(false);cin.tie(NULL);// cin.exceptions(cin.failbit);// int t; cin >> t;// while(t--)solve();cerr<<"\nTime run: "<<1000*clock()/CLOCKS_PER_SEC<<"ms"<<'\n';return0;}#line 4 "NumberTheory/Enumerate_quotients.test.cpp"
voidsolve(){lln;cin>>n;set<ll>s;for(lli=1;i*i<=n;i++){s.insert(i);s.insert(n/i);}cout<<s.size()<<'\n';for(llx:s)cout<<x<<" ";}