#include <bits/stdc++.h>
using namespace std;
int b[(int)1e5];
int main() {
  int n, i, a, ma = 0, cm = 0;
  cin >> n;
  for (i = 0; i < n; i++) {
    scanf("%d", &a);
    b[a - 1]++;
  }
  for (i = (int)1e5 - 1; i >= 0; i--) {
    if (b[i] % 2) {
      cout << "Conan";
      return 0;
    }
  }
  cout << "Agasa";
}
