#include <iostream>
using namespace std;
int max(int a[], int size){
int max = 0 ;
for (size_t i = 0 ; i < size ; i++){
if (a[i] > max )
max = a[i];
}
return max ;
}
int main() {
int a[12] , b[16] = {1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 , 11 , 12 , 13 , 14 , 15 , 16 };
cout << "Введите массив с клавиатуры" << endl ;
for (size_t i = 0 ; i < 12 ; i++){
cin >> a[i] ;
}
int dob = 1 ;
dob = max (a, 12 ) * max (b , 16);
cout << dob << endl ;
return 0;
}