#include <stdio.h> 
#include <math.h>

int main(void) { 
float k, c, S; 
int a, b; 
scanf("%f%d%d", &k, &a, &b); 
c = k * ((float)a / b); 
S = pow(a, 2) + b / k; 
printf("c = %.1f. S = %.1f.", c, S); 
return 0; 
} 