#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; int main() { int i, j, k; int n; vector>xy, xyki, xygu, xy3, xy4(0, vector(2)); cin >> n; for (i = 0; i < n; i++) { long num1, num2; cin >> num1 >> num2; if (num1 % 2 == 0 && num2 % 2 == 0) { xygu.push_back({ num1, num2 }); } else if (num1 % 2 == 1 && num2 % 2 == 1) { xyki.push_back({ num1, num2 }); } else if (num1 % 2 == 1 && num2 % 2 == 0) { xy3.push_back({ num1, num2 }); } else if (num1 % 2 == 0 && num2 % 2 == 1) { xy4.push_back({ num1, num2 }); } else { xy.push_back({ num1,num2 }); } } int cnt = 0; if (xygu.size() > 0) { cnt += xygu.size() / 2; } if (xyki.size() > 0) { cnt += xyki.size() / 2; } if (xy3.size() > 0) { cnt += xy3.size() / 2; } if (xy4.size() > 0) { cnt += xy4.size() / 2; } bool flag = false; //falseはアリス if (cnt > 0) { if (cnt % 2 == 0) { flag = false; } else if(cnt%2==1){ flag = true; } } while (true) { bool flag2 = false; for (i = 0; i < xy.size(); i++) { long numx = xy[i][0]; long numy = xy[i][1]; for (j = i+1; j < xy.size(); j++) { if (i == j)continue; if (abs(xy[j][0] - numx) >= 1 && abs(xy[j][1] - numy) >= 1 && abs(xy[j][0] - numx) % 2 == 0 && abs(xy[j][1] - numy) % 2 == 0) { if (flag == false) { flag = true; } else if (flag == true) { flag = false; } flag2 = true; cnt++; if (i > j) { xy.erase(xy.begin() + i); xy.erase(xy.begin() + j); } else { xy.erase(xy.begin() + j); xy.erase(xy.begin() + i); } break; } } if (flag2 == true) break; } if (flag2 == false) break; } if (cnt == 0) { cout << "Bob" << endl; } else if (flag == true) { cout << "Alice" << endl; } else { cout << "Bob" << endl; } getchar(); getchar(); return 0; }