#include <bits/stdc++.h>
using namespace std;
const int UNDEF = -1;
const int INF = 99999999;
const double EPS = 1e-9;
inline bool EQ(double a, double b) { return abs(a - b) < EPS; }
int n;
int main() {
  while (cin >> n) {
    vector<int> a(n);
    for (int i = 0; i < (n); ++i) scanf("%d", &a[i]);
    int ave = 0;
    for (int i = 0; i < (n); ++i) ave += a[i];
    if (ave % n != 0) {
      cout << "Unrecoverable configuration." << endl;
      continue;
    }
    ave /= n;
    int ans = 0, val, from, to;
    for (int i = 0; i < (n); ++i) {
      if (a[i] == ave) continue;
      if (ans == 2) {
        ans = 3;
        break;
      }
      int t;
      if (a[i] < ave) {
        from = i;
        t = ave - a[i];
      } else {
        to = i;
        t = a[i] - ave;
      }
      if (ans == 0)
        val = t;
      else if (val != t) {
        ans = 3;
        break;
      }
      ans++;
    }
    if (ans == 0) {
      cout << "Exemplary pages." << endl;
    } else if (ans == 2) {
      printf("%d ml. from cup #%d to cup #%d.\n", val, from + 1, to + 1);
    } else {
      cout << "Unrecoverable configuration." << endl;
    }
  }
  return 0;
}
