#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, S = 0;
  cin >> n;
  int a[n];
  bool flag = false;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    S += a[i];
  }
  int from, to;
  int N = S / n;
  if (S % n == 0) {
    int hi = 0, lo = 0, ceros = 0;
    for (int i = 0; i < n; i++) {
      if (a[i] > N) {
        hi++;
        from = i;
      } else if (a[i] < N) {
        lo++;
        to = i;
      } else {
        ceros++;
      }
    }
    if (ceros == n) {
      cout << "Exemplary pages." << endl;
      return 0;
    }
    if (hi != 1 || lo != 1)
      cout << "Unrecoverable configuration." << endl;
    else {
      printf("%d ml. from cup #%d to cup #%d.\n", a[from] - N, to + 1,
             from + 1);
    }
  } else {
    cout << "Unrecoverable configuration." << endl;
  }
  return 0;
}
