#include<bits/stdc++.h> using namespace std; int main(){ double t, x; int n, y; cin >> t >> n; y = n * 2; x = t / n; cout << x << setprecision(3) << endl << y; return 0; }