暴力+乱搞
#include <iostream>
#include <cstring>
#include <cstdio>
#include <algorithm>
using namespace std;
typedef long long int LL;
LL n,a,b;
int main()
{
cin>>n>>a>>b;
LL s=n*6;
if(a*b>=s)
{
cout<<a*b<<endl;
cout<<a<<" "<<b<<endl;
return 0;
}
bool flag=false;
if(b<a)
{
swap(a,b);
flag=true;
}
LL X,Y,AREA=(1LL<<62);
int nt=0;
for(LL i=a;i<s;i++)
{
LL j=s/i;
if(j*i<s) j++;
nt++;
if(j<b) break;
if(j*i<AREA)
{
AREA=i*j;
X=i;Y=j;
if(flag) swap(X,Y);
}
else if(j*i==s)
{
cout<<i*j<<endl;
if(flag) swap(i,j);
cout<<i<<" "<<j<<endl;
return 0;
}
else if(j*i>AREA&&nt>20000)
{
break;
}
}
cout<<X*Y<<endl;
cout<<X<<" "<<Y<<endl;
return 0;
}