#include <iostream>
using namespace std;
int main(){
const int size = 10;
int a[size] = {0};
for(int i = 0; i < size; i++){
cin>>a[i]; //输入10个整数
}
int lower = a[0];
int index = 0;
for(int j = 1; j < size; j++){
if(a[j] < lower){
lower = a[j];
index = j;
}
}
cout<<"\n\n"<<lower<<endl
<<index<<endl;
system("PAUSE");
return 0;
}