#include using namespace std; using ll = long long; using vll = vector; template T get() { T r; cin >> r; return r; } template vector get_v(ll n) { vector v; for (int i = 0; i != n; i++) { v.push_back(get()); }; return v; } template void show_v(vector v) { for (ll i = 0; i != v.size() - 1; i++) cout << v[i] << " "; cout << *(v.end() - 1) << endl; } int main() { ll k = get(); vll p = {2, 3, 5, 7, 11, 13}, g = {4, 6, 8, 9, 10, 12}; vll prox(13 * 12 + 1, 0); for (auto const &i : p) { for (auto const &j : g) { prox[i * j]++; } }; cout << fixed << setprecision(30); if (k > 13 * 12) { cout << 0.0 << endl; } else { cout << (double)prox[k] / (6 * 6) << endl; } system("pause"); }