1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
#include <iostream>

using namespace std;

int main()
{
    int n;

    cin >> n;

    int w = 1;

    for (int i = 2; i < n/3; i++)
        if (n % i == 0 && n >= 7 * i)
            w++;

    cout << w;

    return 0;
}