#include<bits/stdc++.h>
using namespace std;

#define int long long

#define MAX 100

signed main(){

  int N;
  int a[MAX], used[MAX] = {}, num = 1;
  
  vector<int> ans;

  cin>>N;

  for(int i = 0; i < N; i++){
    cin>>a[i];
  }

  for(int i = 0; i < N; i++){
    if(a[i] == 2 || a[i] == -2) used[i] = true;
    if(a[i] == -2) num *= -1;
  }
  
  if(num == -1){
    bool flag = false;
    for(int i = 0; i < N; i++){
      if(a[i] == -1){
	flag = true;
	used[i] = true;
	break;
      }
    }
    
    if(flag == false){
      for(int i = N-1; i >= 0; i--){
	if(a[i] == -2){
	  used[i] = false;
	  break;
	}
      }
    }
  }
  
  for(int i = 0; i < N; i++){
    if(used[i] == true) ans.push_back(i);
  }

  cout<<ans.size()<<endl;
  
  for(int i = 0; i < ans.size(); i++){
    cout<<ans[i]+1<<endl;
  }
  
  return 0;
}

