#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a[10005], m, sum, b[1005], c[1005], t[1005], d[1005], e[1005];
  cin >> n;
  sum = 0;
  int flag = 0, tmp;
  for (int i = 1; i <= n; i++) {
    cin >> a[i];
    sum += a[i];
    if (i == 1)
      tmp = a[i];
    else if (a[i] != tmp)
      flag = 1;
    t[i] = 0;
  }
  m = sum / n;
  if (flag == 0 || n == 1)
    cout << "Exemplary pages." << endl;
  else {
    if (m * n != sum)
      cout << "Unrecoverable configuration." << endl;
    else {
      int k = 0, l = 0;
      for (int i = 1; i <= n; i++)
        if (a[i] != m) b[k] = a[i] - m, c[k] = i, k++;
      if (k != 2)
        cout << "Unrecoverable configuration." << endl;
      else {
        if (b[0] + b[1] == 0) {
          if (b[0] < 0)
            printf("%d ml. from cup #%d to cup #%d.\n", b[1], c[0], c[1]);
          else
            printf("%d ml. from cup #%d to cup #%d.\n", b[0], c[1], c[0]);
        } else
          cout << "Unrecoverable configuration." << endl;
      }
    }
  }
  return 0;
}
