#define _USE_MATH_DEFINES #include //cin, cout #include //vector #include //sort,min,max,count #include //string,getline, to_string #include //abs(int) #include //swap, pair #include //deque #include //INT_MAX #include //bitset #include //sqrt, ceil. M_PI, pow, sin #include //fixed #include //setprecision #include //stringstream #include //gcd, assumlate #include //randam_device #include //numeric_limits using namespace std; constexpr long long int D_MOD = 1000000007; int main() { vector A = { 2,3,5,7,11,13 }; vector B = { 4,6,8,9,10,12 }; int K; cin >> K; int cnt = 0; for (int i = 0; i < 6; i++) { for (int j = 0; j < 6; j++) { if (A[i] * B[j] == K) { cnt++; } } } double ans = cnt / 36.0; cout << fixed << setprecision(14) << ans << endl; return 0; }