#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, sum, c[1005], i, f, t, avg, flag;
  while (cin >> n) {
    sum = 0;
    memset(c, 0, sizeof(c));
    flag = 0;
    for (i = 0; i < n; ++i) {
      cin >> c[i];
      sum += c[i];
    }
    f = -1;
    t = -1;
    avg = sum / n;
    if (sum % n != 0)
      cout << "Unrecoverable configuration." << endl;
    else {
      for (i = 0; i < n; ++i) {
        if (c[i] > avg) {
          if (f == -1)
            f = i;
          else {
            flag = 1;
            break;
          }
        }
        if (c[i] < avg) {
          if (t == -1)
            t = i;
          else {
            flag = 1;
            break;
          }
        }
      }
      if (flag == 1)
        cout << "Unrecoverable configuration." << endl;
      else {
        if (f == -1 && t == -1)
          cout << "Exemplary pages." << endl;
        else {
          cout << c[f] - avg << " ml. from cup #" << t + 1 << " to cup #"
               << f + 1 << "." << endl;
        }
      }
    }
  }
  return 0;
}
