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