#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, i, k = 1;
  cin >> n;
  int t[n];
  cin >> t[0];
  int s = t[0];
  for (i = 1; i < n; i++) {
    cin >> t[i];
    s += t[i];
  }
  if (s % n != 0) {
    cout << "Unrecoverable configuration." << endl;
    return 0;
  }
  int c = 0;
  int j = 0, x = 0;
  int v[4];
  while ((c <= 2) && (j < n)) {
    if (t[j] != (s / n)) {
      c++;
      v[x] = t[j];
      x++;
      v[x] = j;
      x++;
    }
    j++;
  }
  if (c == 0) {
    cout << "Exemplary pages." << endl;
    return 0;
  } else if ((c != 2) || (s % n != 0)) {
    cout << "Unrecoverable configuration." << endl;
    return 0;
  }
  if (v[0] > v[2]) {
    cout << (v[0] - v[2]) / 2 << " ml. from cup #" << v[3] + 1 << " to cup #"
         << v[1] + 1 << "." << endl;
  } else {
    cout << (v[2] - v[0]) / 2 << " ml. from cup #" << v[1] + 1 << " to cup #"
         << v[3] + 1 << "." << endl;
  }
}
