import java.util.Scanner; public class prog{ public static void main(String[] args) { // TODO Auto-generated method stub Scanner scn = new Scanner(System.in); int N = scn.nextInt(); int[] arr = new int[N]; for (int i = 0; i < N; i++) { arr[i] = scn.nextInt(); } boolean check = true; if (N == 1) { int a = arr[0]; if (a != 1 && a != 100) { System.out.println(1 + "-" + (a - 1)); System.out.println(a + 1 + "-" + 100); } else if (a == 1) { System.out.println(a + 1 + "-" + 100); } else { System.out.println(1 + "-" + 99); } check = false; } else { for (int i = 0; i < N - 1; i++) { int a = arr[i]; int b = arr[i + 1]; if (i == 0) { if (a != 1) { System.out.println(1 + "-" + (a - 1)); } } if (b - a > 1) { System.out.println(a + 1 + "-" + (b - 1)); } if (i == N - 2) { if (b != 100) { System.out.println(b + 1 + "-" + 100); } } } check = false; } if (check) { System.out.println("All clear!"); } } }