#include <bits/stdc++.h>
using namespace std;
int a[100010];
int main(void) {
  int i;
  cin.tie(0);
  ios_base::sync_with_stdio(false);
  int n;
  cin >> n;
  int mx = 0;
  for (i = 1; i <= n; i++) {
    int x;
    cin >> x;
    a[x]++;
    mx = max(mx, x);
  }
  if (a[mx] % 2 == 1)
    cout << "Conan" << endl;
  else {
    for (i = mx - 1; i >= 1; i--) {
      if (a[i] % 2 == 1) {
        cout << "Conan" << endl;
        return 0;
      }
    }
    cout << "Agasa" << endl;
  }
  return 0;
}
