open Printf
open Scanf

let id x = x

let n = scanf "%d"id
let ns = Array.init n (fun _ -> scanf " %d" id)

let run () =
    let result = ref 0 in
    for i = 0 to n - 1 do
        if (i + 1) mod 2 = 1 && ns.(i) mod 2 = 1 then incr result
    done;
    printf "%d\n" !result

let () = run ()