#include <bits/stdc++.h>
using namespace std;
int main(){
int a[200][5];
int n,i,j;
double max = 0;
cin >> n;
for(i = 0;i < n;i++){
for(j = 0;j < 3;j++){
cin >> a[i][j];
}
}
for(i = 0;i < n;i++){
if(max < (a[i][0] + a[i][1]) * a[i][2] / 2){
max = (a[i][0] + a[i][1]) * a[i][2] / 2.0;
}
}
cout << fixed << setprecision(1) << max * 1.0<< endl;
}