#include <iostream>
#include <fstream>
using namespace std;
//ifstream in("a.in");
//ofstream out("a.out");
int main()
{
    int n;
    cin >> n;
    int last = 0;
    cin >> last;
    bool ok = 0;
    for(int i = 1; i < n; i++)
    {
        int x;
        cin >> x;
        if(last + 1 != x)
        {
            cout << last + 1 << "-" << x - 1 << "\n";
            ok = 1;
        }
        last = x;
    }
    if(last != 100)
    {
        ok = 1;
        cout << last + 1 << "-100\n";
    }
    if(ok == 0)
        cout << "All clear!\n";
    return 0;
}