K = gets.to_i dp = Array.new(200,0) [2,3,5,7,11,13].product([4,6,8,9,10,12]) do |a,b| dp[a * b] += 1 if a * b <= 200 end puts dp[K] / 36.0