#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  scanf("%d", &n);
  int ar[n];
  for (int i = 0; i < n; ++i) scanf("%d", &ar[i]);
  int sum = 0;
  for (int i = 0; i < n; ++i) sum += ar[i];
  if (sum % n) {
    printf("Unrecoverable configuration.\n");
    return 0;
  }
  int each = sum / n;
  for (int i = 0; i < n; ++i) ar[i] -= each;
  int s, l, sc = 0, lc = 0;
  for (int i = 0; i < n; ++i) {
    if (ar[i] < 0) {
      s = i;
      sc++;
    }
    if (ar[i] > 0) {
      l = i;
      lc++;
    }
  }
  if (sc == 0 && lc == 0) {
    printf("Exemplary pages.\n");
    return 0;
  }
  if (-1 * ar[s] != ar[l] || !(sc == 1 && lc == 1)) {
    printf("Unrecoverable configuration.\n");
    return 0;
  }
  printf("%d ml. from cup #%d to cup #%d.", ar[l], s + 1, l + 1);
  return 0;
}
