include<iostream> using namespace std; int main(){ int a,b=0; cin>>a; for(int c=1;c>a;c++){ if(a%b==0) b=b+c; } cout<<"%d"<<b; return 0; }