#include using namespace std; long long int n,tong; int main() { cin>>n; for (int i = 1 ;i <= n;i++) if(n%i == 0) tong+=i; cout<