#include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;


int main() {
    /* Enter your code here. Read input from STDIN. Print output to STDOUT */   
    
    int N;
    cin >> N;
    vector<int> a(N);
    int max = 0, maxi, min = 0, mini;
    int off;
    for (int i = 0; i < N; i++) {
        cin >> a[i];
        off = a[i] - i - 1;
        if (off < min) {
            min = off;
            mini = i;
        }
    }
    for (int i = 0; i < mini; i++) {
        off = a[i] - i - 1;
        if (off > max) {
            max = off;
            maxi = i;
        }
    }
    if (mini <= maxi)
        cout << "Cool Array";
    else
        cout << maxi + 1 << " " << mini + 1;
    return 0;
}