#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, value;
  cin >> N;
  int A[1000001] = {0};
  int F = 1;
  for (int i = 0; i < N; i++) {
    cin >> value;
    A[value]++;
  }
  for (int i = 0; i < 1000001; i++)
    if (A[i] % 2 == 1) {
      F = 0;
      break;
    }
  if (F == 0)
    cout << "Conan" << endl;
  else
    cout << "Agasa" << endl;
  return 0;
}
