#include <bits/stdc++.h> #define EL cerr << endl; #define DB(x) cerr << "#" << (#x) << ": " << (x) << " "; #define DEB(x) cerr << "#" << (#x) << ": " << (x) << endl; #define PR(x) cout << (x) << endl #define X first #define Y second #define PB push_back #define MP make_pair using namespace std; typedef unsigned long long ull; typedef long double ld; typedef long long ll; typedef pair<int, int> ii; typedef pair<int, ii> iii; typedef vector<int> vi; typedef vector<ii> vii; typedef vector<vi> vvi; typedef vector<ll> vll; typedef pair<string, string> ss; const static int MAXN = 1100000; const static ll D13 = 10000000000000ll; int n, i, j, A[MAXN], D[MAXN]; int main() { ios_base::sync_with_stdio(0); cin.tie(0); while(cin >> n) { bool cool = true; for(i = 1; i <= n; i++){ cin >> A[i]; D[i] = i - A[i]; if(A[i] != i) cool = false; } if(cool){cout << "Cool Array\n"; return 0;} int mn = INT_MAX, x, y, mx = INT_MIN; for(i = 1; i <= n; i++){ if(mn > D[i]){ mn = D[i]; x = i; } if(mx < D[i]){ mx = D[i]; y = i; } } if(x > y) swap(x, y); cout << x << " " << y << "\n"; } }