#include <bits/stdc++.h>
using namespace std;
int n, vol[10010];
int sum, avg;
int main() {
  int i;
  while (scanf("%d", &n) != EOF) {
    sum = 0;
    for (i = 0; i < n; ++i) {
      scanf("%d", &vol[i]);
      sum += vol[i];
    }
    if (sum % n != 0) {
      puts("Unrecoverable configuration.");
    } else {
      avg = sum / n;
      int a, b, v;
      int flag = 0;
      for (i = 0; i < n; ++i) {
        if (vol[i] != avg) {
          if (flag == 0) {
            flag = 1;
            a = i;
          } else if (flag == 1) {
            flag = 2;
            if (vol[i] < vol[a]) {
              b = a, a = i;
              v = vol[b] - vol[a];
            } else {
              b = i;
              v = vol[b] - vol[a];
            }
          } else {
            flag++;
            break;
          }
        }
      }
      if (flag == 0) {
        puts("Exemplary pages.");
      } else if (flag == 2) {
        printf("%d ml. from cup #%d to cup #%d.\n", v / 2, a + 1, b + 1);
      } else {
        puts("Unrecoverable configuration.");
      }
    }
  }
  return 0;
}
