#include #include #include #include #include #include #include #include using namespace std; int main(void){ int K; cin >> K; double cnt = 0; int prime[] = {2,3,5,7,11,13}; int comp[] = {4,6,8,9,10,12}; for(int i = 0; i < 6; i++){ for(int j = 0; j < 6; j++){ if(K == prime[i] * comp[j]){ cnt++; } } } cout << cnt << endl; cout << fixed << setprecision(12) << cnt / 36 << endl; }