#include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define REP(i,n) for(int i=0; i=b; --i) #define ALL(c) (c).begin(), (c).end() typedef long long ll; typedef vector VI; typedef vector VL; typedef vector VVL; typedef vector VVI; typedef pair P; typedef pair PL; int main() { int k; cin >> k; double ans = 0; int a[] = {2,3,5,7,11,13}; int b[] = {4,6,8,9,10,12}; REP(i,6) REP(j,6){ if (a[i] * b[j] == k) ans += 1.0/36.0; } printf("%.15f\n", ans); return 0; }