#include using namespace std; typedef signed long long ll; #undef _P #define _P(...) (void)printf(__VA_ARGS__) #define FOR(x,to) for(x=0;x>N; if(N%2==0) N/=2; for(ll a=1;a*a<=N;a++) if(N%a==0) { ret += a; if(a*a!=N) ret += N/a; } cout<