#include <bits/stdc++.h>   using namespace std;   int main() {     int a, b, c;     while (~scanf( %d %d %d , &a, &b, &c)) {       int ans = a + b + c;       ans = max(ans, a * b * c);       ans = max((a + b) * c, ans);       ans = max(a * (b + c), ans);       printf( %d n , ans);     }     return 0;   }   