#include <bits/stdc++.h>
using namespace std;
int A[1000];
int main() {
  int N;
  scanf("%d", &N);
  int sum = 0;
  for (int i = 0; i < (int)(N); i++) {
    scanf("%d", A + i);
    sum += A[i];
  }
  if ((sum % N))
    printf("Unrecoverable configuration.\n");
  else {
    int k = sum / N;
    vector<int> cand;
    for (int i = 0; i < (int)(N); i++) {
      if (k != A[i]) cand.push_back(i);
    }
    if (cand.empty())
      printf("Exemplary pages.\n");
    else if (cand.size() >= 3 || cand.size() == 1)
      printf("Unrecoverable configuration.\n");
    else {
      int i1 = cand[0];
      int i2 = cand[1];
      if (A[i1] < A[i2]) swap(i1, i2);
      printf("%d ml. from cup #%d to cup #%d.\n", (A[i1] - A[i2]) / 2, i2 + 1,
             i1 + 1);
    }
  }
  return 0;
}
