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