#include <iostream>
using namespace std;
#define ld long double
#define ll long long
ld inp[(int)1e5 + 1][2];
int main() {
ll n;
ld p;
cin >> n >> p;
for (int i=0; i < n; i++) {
cin >> inp[i][0] >> inp[i][1];
cout << inp[i][1]/inp[i][0] << endl;
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKI2RlZmluZSBsZCBsb25nIGRvdWJsZQojZGVmaW5lIGxsIGxvbmcgbG9uZwoKbGQgaW5wWyhpbnQpMWU1ICsgMV1bMl07CgppbnQgbWFpbigpIHsKCQoJbGwgbjsKCWxkIHA7CgljaW4gPj4gbiA+PiBwOwoJCglmb3IgKGludCBpPTA7IGkgPCBuOyBpKyspIHsKCQljaW4gPj4gaW5wW2ldWzBdID4+IGlucFtpXVsxXTsKCQljb3V0IDw8IGlucFtpXVsxXS9pbnBbaV1bMF0gPDwgZW5kbDsKCX0KCQoJCgkKCXJldHVybiAwOwp9