using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Magatro { static void Main() { Dictionary D = new Dictionary(); int[] D1 = new int[] { 2, 3, 5, 7, 11, 13 }, D2 = new int[] { 4, 6, 8, 9, 10, 12 }; for(int i = 0; i < 6; i++) { for(int j = 0; j < 6; j++) { int seki = D1[i] * D2[j]; if (D.ContainsKey(seki)) { D[seki]++; } else { D.Add(seki, 1); } } } int N = int.Parse(Console.ReadLine()); if (D.ContainsKey(N)) { Console.WriteLine((double)D[N] / 36); return; } else { Console.WriteLine(0); return; } } }