#include #include #include const std::vector d1{2, 3, 5, 7, 11, 13}, d2{4, 6, 8, 9, 10, 12}; using ldouble = long double; void solve() { int k; std::cin >> k; int cnt = 0; for (auto x1 : d1) { for (auto x2 : d2) { if (x1 * x2 == k) ++cnt; } } std::cout << std::fixed << std::setprecision(20) << ldouble(cnt) / 36 << std::endl; } int main() { std::cin.tie(nullptr); std::cout.tie(nullptr); std::ios::sync_with_stdio(false); solve(); return 0; }