#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a, f;
  cin >> n;
  vector<int> v;
  for (int i = 0; i < n; i++) {
    cin >> a;
    v.push_back(a);
  }
  sort(v.begin(), v.end());
  int d;
  int c = 0;
  while ((c % 2 == 0) && (v.size() != 0)) {
    c = 0;
    d = v[v.size() - 1];
    v.pop_back();
    c = c + 1;
    for (int j = v.size() - 1; j >= 0; j--) {
      if (v[j] == d) {
        c = c + 1;
        f = v[j - 1];
        v.pop_back();
      } else
        break;
    }
  }
  if ((c % 2 == 0))
    cout << "Agasa";
  else
    cout << "Conan";
  return 0;
}
