#include <bits/stdc++.h>
using namespace std;
int n, i, j, a[1000], k[10001], diff;
int main() {
  cin >> n;
  for (i = 0; i < n; ++i) {
    cin >> a[i];
    if (k[a[i]] == 0) ++diff;
    k[a[i]]++;
  }
  if (diff == 1) {
    cout << "Exemplary pages.";
    return 0;
  }
  for (i = 0; i < n; ++i)
    for (j = 0; j < n; ++j)
      if ((a[i] + a[j]) % 2 == 0 && k[(a[i] + a[j]) / 2] == n - 2 &&
          a[i] > a[j]) {
        cout << a[i] - (a[i] + a[j]) / 2 << " ml. from cup #" << j + 1
             << " to cup #" << i + 1 << '.';
        return 0;
      }
  cout << "Unrecoverable configuration.";
}
