package me.yukicoder.lv1; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class No0211 { public static void main(String[] args) { try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in));) { int K = Integer.parseInt(br.readLine()); int[] prime = { 2, 3, 5, 7, 11, 13 }; int[] composite = { 4, 6, 8, 9, 10, 12 }; int cnt = 0; for (int p : prime) { for (int c : composite) { if (p * c == K) cnt++; } } System.out.println((double)cnt/36); } catch (IOException e) { e.printStackTrace(); } } }