#include using namespace std; int main() { int n, x; cin >> n; vector covered(101, 0); bool allClear = true; while (n--) { cin >> x; covered[x] = 1; } int i = 1; while (1) { while (i <= 100 && covered[i]) ++i; if (i > 100) break; int range = 0; while (i <= 100 && !covered[i]) { ++i; ++range; allClear = false; } cout << i - range << '-' << i - 1 << '\n'; } if (allClear) { cout << "All clear!\n"; } return 0; }