typedef long long ll; #include using namespace std; int main() { ll n; std::cin >> n; map e; for (int i = 2; i <= sqrt(n); i++) { while(n%i==0){ e[i]++; n/=i; } } if(n!=1){ e[n]++; } vector res; for (auto ee : e) { ll tmp = 0; for (int i = 0; i <= ee.second; i++) { tmp += pow(ee.first,i); } res.push_back(tmp); } ll ans = 1; for (auto ee : res) { ans *= ee; } std::cout << ans << std::endl; }