let () =
  Scanf.scanf "%d\n" @@ fun n ->
  let arr = Array.init n @@ fun i -> Scanf.scanf "%d " @@ fun d -> (i+1, d) in
  Printf.printf "%d\n"
    (Array.fold_left (fun s (i,d) -> if i mod 2 = 1 && d mod 2 = 1 then s + 1 else s) 0 arr)