const Main =(input)=>{
const first=input.split("\n");
  const num=first[1].split(" ");
  
let i =0;
  if(num[i]%2===0){
    i++;
  }
  console.log(i);
}

Main(require('fs').readFileSync('/dev/stdin', 'utf8'));
