#include <iostream>
using namespace std;
int main()
{
float t,V,N,I;
int n,i,j;
cin >> t >> n;
V = t / n;
i =V * 10000;
j = i % 10;
if (j >= 5) {
i = (i + 5) / 10;
}
else
i=i / 10;
I = i / 1000.000;
N = n * 2;
cout << I<< endl;
cout << N << endl;
return 0;
}