#include using namespace std; long long t,p=0; int main() { cin>>t; for (int i=1;i*i<=t;i++) { if(t%i==0) { p+=i; if(t/i!=i)p+=t/i; } } cout<