#include <bits/stdc++.h>
using namespace std;
const int MAX = 1001;
int n, arr[MAX], fr, fri, frc, to, toi, toc, sum;
int main() {
  scanf("%d", &n);
  for (int i = 1; i <= n; i++) {
    scanf("%d", &arr[i]);
    sum += arr[i];
  }
  if (sum % n == 0) {
    sum /= n;
    for (int i = 1; i <= n; i++) {
      if (arr[i] < sum) {
        fr++;
        fri = i;
        frc = arr[i];
      } else if (arr[i] > sum) {
        to++;
        toi = i;
        toc = arr[i];
      }
    }
    if (!fr && !to)
      printf("Exemplary pages.\n");
    else if (fr == 1 && to == 1)
      printf("%d ml. from cup #%d to cup #%d.\n", toc - sum, fri, toi);
    else
      printf("Unrecoverable configuration.\n");
  } else
    printf("Unrecoverable configuration.\n");
  return 0;
}
