#include <iostream>
using namespace std;
int main() {
int arr[9];
int max = 0;
for (int i = 0;i < 9 ;i++ ) {
cin >> arr[i];
if (arr[i] > max) {
max = arr[i];
}
}
cout << max << "\n";
int cnt = 1;
for (int i = 0;i < 9;i++) {
if (arr[i] == max) {
cout << cnt;
return 0;
}
cnt++;
}
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: