program Tema;
uses SysUtils;
uses Math;
const C_FNAME_IN='date3.in';
const C_FNAME_OUT='date3.out'
var tfIn,tfOut:TextFile;
var a,b,c,ma,mg:real;
begin
AssignFile(tfIn,C_FNAME_IN);
AssignFile(tfOut,C_FNAME_OUT);
readln(tfIn,a,b,c);
ma:=(a+b+c)/3;
mg:=power(a*b*c,1.0/3.0);
writeln(tfOut,ma);
writeln(tfOut,mg);
CloseFile(tfIn);
closeFile(tfOut);
end.