#include #include #define ll long long int #define mod 1000000007 #define mp make_pair #define pb emplace_back #define fi first #define se second #define sd(t) scanf("%d",&t) #define pd(t) printf("%d\n",t) #define slld(t) scanf("%lld",&t) #define plld(t) printf("%lld\n",t) #define For(i,n) for(ll i=0;is; unordered_mappo; int main() { ll n; cin>>n; ll total=0; for(ll i=0;i>x; if(x==1) { total+=1; continue; } if(x==2||x==3) { total+=(x+1); continue; } ll mark=1; total+=x; for(ll j=2;j<=sqrt(x);j++) { if(x%j==0) { total+=mark; mark=(x/j); x=x/j; j--; } } total+=mark; //cout<