#include <bits/stdc++.h> using namespace std; int main() { int a[102], b = 1; for (int i = 1; i <= 100; i ++ ) cin >> a[i], b = (a[b] < a[i] ? i : b); cout << a[b] << endl << b; }