#include <bits/stdc++.h>
using namespace std ;
int main() {
double a,b,c,m,n;
while(true){
cin>>a>>b>>c;
if(a!=0&&b!=0&&c!=0){
m=a/b;
cout<<fixed<<setprecision(2)<<m<<" ";
n=c/m;
cout<<fixed<<setprecision(2)<<n<<endl;
}
else if (a==0&&b==0&&c==0) break;
}
}