#include using namespace std; #pragma GCC target("avx2") #pragma GCC optimize("O3") #pragma GCC optimize("unroll-loops") int main() { int N; cin >> N; int ans = 0; for (int i = 2; i <= N; i++){ if (N % i != 0){ ans++; } } cout << ans << endl; }