#include <bits/stdc++.h>
using namespace std;
typedef long long ll;

int n,A[102];

int main(){
    cin>>n;
    for (int i=1; i<=n; i++){
        int x;
        cin>>x;
        A[x]=1;
    }
    int i=1;
    while(i<=100 && A[i]) i++;
    if (i>100) return cout<<"All clear!",0;
    i=1;
    while (i<=100){
        while(i<=100 && A[i]) i++;
        cout<<i<<"-";
        while(i<=100 && !A[i]) i++;
        cout<<i-1<<"\n";
    }
    return 0;
}