#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, arr[1003], sum = 0, cnt = 0, val, idx1, idx2;
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> arr[i];
    sum += arr[i];
  }
  if (sum % n != 0) {
    cout << "Unrecoverable configuration.\n";
    return 0;
  }
  sum /= n;
  for (int i = 1; i <= n; i++) {
    if (sum == arr[i]) cnt++;
    if (arr[i] < sum) {
      val = sum - arr[i];
      idx1 = i;
    }
    if (arr[i] > sum) idx2 = i;
  }
  if (cnt == n) {
    cout << "Exemplary pages.\n";
    return 0;
  }
  if (cnt < n - 2) {
    cout << "Unrecoverable configuration.\n";
    return 0;
  }
  cout << val << " ml. from cup #" << idx1 << " to cup #" << idx2 << ".\n";
  return 0;
}
