#include #include using namespace std; int main() { int a,i = 1; while(cin >> a) { if(!(a % 2)) { cout << i << endl; return 0; } i++; } }