/* -*- coding: utf-8 -*- * * 2480.cc: No.2480 Sequence Sum - yukicoder */ #include #include using namespace std; /* constant */ /* typedef */ /* global variables */ /* subroutines */ /* main */ int main() { int n; scanf("%d", &n); int c = 0; for (int p = 1; p * p <= n; p++) if (n % p == 0) { int q = n / p; c += (p != q) ? 2 : 1; } printf("%d\n", n - c); return 0; }