n=gets.to_i()
count=0
n.times do
  i=1
  flag=0
  s=gets.to_i()
  while((s+i+1)/(2*i+1)>=2.0)
    if((s+i+1) % (2*i+1)==0)
      flag=1
      break
    end
    i+=1
  end
  if(flag==0)
    count+=1
  end
end
puts count