#include <iostream>

using namespace std;

int N;
int V[105];

int main()
{
    cin >> N;
    for (int i = 1; i <= N; ++i)
        cin >> V[i];

    bool ok = false;
    for (int i = 1; i <= N; ++i)
    {
        if (V[i + 1] - V[i] > 1)
        {
            ok = true;
            cout << V[i] + 1 << "-" << V[i + 1] - 1 << '\n';
        }
    }
    if (101 - V[N] > 1)
    {
        ok = true;
        cout << V[N] + 1 << "-100";
    }

    if (!ok)
        cout << "All clear\n";

    return 0;
}