#include<bits/stdc++.h> using namespace std; int main(){ double t,n,g,e; cin>>t>>n; g=n*2; e=t/n; printf("%.3lf",e); cout<<endl<<g; return 0; }