k=gets.to_i p [2,3,5,7,11,13].product([4,6,8,9,10,12]).map{|a,b|a*b}.select{|v|v==k}.size/36.0