#include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 20;
int n, x, i, f[N];
int main() {
  scanf("%d", &n);
  while (n--) scanf("%d", &x), f[x]++;
  for (i = N - 1; i >= 0; i--)
    if (f[i] & 1) return 0 * printf("Conan");
  printf("Agasa");
}
