#include using namespace std; /////////////////// メイン /////////////////// int main () { //////////////////// 入力 //////////////////// int n; cin >> n; //////////////// 出力変数定義 //////////////// int result = 0; //////////////////// 処理 //////////////////// for (int i : {2,3,5,7,11,13}) { for (int j : {4,6,8,9,10,12}) { if (i*j==n) result++; } } //////////////////// 出力 //////////////////// cout << fixed << setprecision(15) << result/36.0 << endl; //////////////////// 終了 //////////////////// return 0; }