#include <iostream>
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
int n,cnt=0;
cin>>n;
while(n--){
int a;
cin>>a;
if(a%2==1)cnt++;
}
if(cnt==0)cout<<-1;
else cout<<cnt;
return 0;
}
// 64 位输出请用 printf("%lld")

京公网安备 11010502036488号