#include using namespace std; int main() { int a[] = {2, 3, 5, 7, 11, 13}; int b[] = {4, 6, 8, 9, 10, 12}; int k; cin >> k; double cnt = 0; for (int i : a) { for (int j : b) { cnt += i * j == k ? 1 : 0; } } printf("%.12f", cnt / 36); }