#include using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0); int x, y, n; cin >> n >> x; bool printed = 0; if (x != 1) { printed = 1; cout << "1-" << x - 1 << '\n'; } for (int i = 2; i <= n; ++i) { cin >> y; if (y - x > 1) { cout << x + 1 << '-' << y - 1 << '\n'; printed = 1; } x = y; } if (y != 100) cout << y + 1 << "-100"; if (printed == 0) cout << "All clear!"; cout << '\n'; return 0; }