#include <iostream>
using namespace std;
int main() {
int n, v[10000];
cin >> n;
for (int i = 0; i < n; i++)
cin >> v[i];
int minn = v[0];
int pos_minn = 0;
for (int i = 1; i < n; i++) {
if (v[i] < minn) {
minn = v[i];
pos_minn = i;
}
}
cout << "Valoarea minima: " << minn << "\n";
cout << "Pozitia pe care se afla: " << pos_minn << "\n";
return 0;
}