open Printf
open Scanf

let id x = x

let solve n =
  let la = List.init n @@ fun _ -> scanf "%d " id in
  let rec loop ct l =
    match l with
      x::_::xs -> if x mod 2 = 1 then loop (ct + 1) xs else loop ct xs
    | [x] -> if x mod 2 = 1 then ct + 1 else ct
    | _ -> ct in
  loop 0 la

let () =
  scanf "%d " solve |> printf "%d\n"
