#include "stdio.h"
#include "math.h"
int main(){
double y, x, a, b;
scanf("%lf%lf%lf", &x, &a, &b);
y = cos(2 * x) + sin(x - 3);
printf("y = %lf", y);
if (cos(2 * a) + sin(x - a) > cos(2 * b) + sin(b - 3))
printf("\nmax - a");
else if (cos(2 * a) + sin(x - a) < cos(2 * b) + sin(b - 3))
printf("\nmax - b");
else
printf("\nin a = in b");
}