#include <stdio.h>
#include <stdlib.h>
int main()
{
double a,b,c,x;
while(~scanf("%lf%lf%lf",&a,&b,&c))
{
if(b==1)
{
x=a*1.26;
}
else
x=a*2.455;
printf("%.2lf ",x);
if(x<=c)
printf("^_^\n");
else
printf("T_T\n");
}
return 0;
}