#include<iostream>
#include<iomanip>
#include<cstdlib>
using namespace std;
int main ()
{
double a,b,c;
while(cin>>a>>b>>c)
{
if(a!=0&&b!=0&&c!=0)
{
cout<<fixed<<setprecision(2)<<a/b<<" "<<c/(a/b)<<endl;
}
else
{
return EXIT_SUCCESS;
}
}
}