#include <bits/stdc++.h>
using namespace std;
int c[10001], p[10001], b[4], d[4];
int main() {
  int n, i, v, total = 0;
  scanf("%d", &n);
  for (i = 1; i <= n; i++) {
    scanf("%d", &v);
    c[v]++;
    p[v] = i;
  }
  for (i = 0; i <= 10000; i++)
    if (c[i] > 0) {
      b[++total] = c[i];
      d[total] = i;
    }
  if (total == 1)
    printf("Exemplary pages.\n");
  else if (total == 2 && b[1] == b[2] && b[1] == 1 && (d[1] + d[2]) % 2 == 0)
    printf("%d ml. from cup #%d to cup #%d.\n", (d[2] - d[1]) / 2, p[d[1]],
           p[d[2]]);
  else if (total == 3 && b[1] == b[3] && b[1] == 1 &&
           d[1] + d[3] == d[2] + d[2])
    printf("%d ml. from cup #%d to cup #%d.\n", (d[3] - d[1]) / 2, p[d[1]],
           p[d[3]]);
  else
    printf("Unrecoverable configuration.\n");
  return 0;
}
