#include <bits/stdc++.h>
using namespace std;
int ar[100005], f = 0, a, n;
int main() {
  ios_base::sync_with_stdio(0);
  cin >> a;
  for (int i = 0; i < a; i++) {
    cin >> n;
    ar[n]++;
  }
  for (int i = 0; i < 100000; i++) {
    if (ar[i + 1] % 2) {
      f++;
    }
  }
  if (f)
    cout << "Conan" << endl;
  else
    cout << "Agasa" << endl;
  return 0;
}
