/*****************************************************************
 print index of minimum element in A
 *****************************************************************/
#include <iostream>
using namespace std;

int main()
{
  // read size n, allocate array of n doubles, read values into array
  int n;
  cin >> n;
  double * A = new double[n];
  for(int i = 0; i < n; i++)
    cin >> A[i];

  // Now what?
  int imin = 0;
  for(int i = 1; i < n; i++)
    if (A[i] < A[imin])
      imin = i;
  cout << "minimum element is A[" << imin << "] = " << A[imin] << "."
       << endl;

  return 0;
}