#include<bits/stdc++.h>
using namespace std;
double a, b, c, d, e, f, g, x, y;
int main()
{
cin>>a>>b>>c;
double mx = max(a * x + b * y, max(c * y, d * x + e));
if (a * x + b * y == mx) printf("1 %.2lf\n", mx);
else if (c * y == mx) printf("2 %.2lf\n", mx);
else printf("3 %.2lf\n", mx);
return 0;
}
全错