open Printf
open Scanf

let id x = x

let n = scanf "%d" id

let f n =
    let r = ref 0 in
    for i = 1 to n do
        if n mod i = 0 then incr r    
    done;
    !r
    
let () =
    let r = ref 0 in
    for i = 1 to n do
        if i mod 2 = 1 && f i = 8 then incr r
    done;
    printf "%d\n" !r
