include [HTML_REMOVED]
using namespace std;
int main() {
int num = 0,max = 0,position = 0;
for(int i = 1; i <= 100; i++ ) {
cin >> num;
if(num > max) {
max = num;
position = i;
}
}
cout << max << endl << position;
return 0;
}