#include <bits/stdc++.h>
using namespace std;
int n;
int main() {
  int a;
  while (cin >> n) {
    map<int, int> G;
    while (n--) {
      scanf("%d", &a);
      if (G.find(a) != G.end())
        G[a]++;
      else
        G[a] = 1;
    }
    map<int, int>::iterator iter = G.begin();
    while (iter != G.end() && iter->second % 2 == 0) ++iter;
    if (iter != G.end())
      puts("Conan");
    else
      puts("Agasa");
  }
  return 0;
}
