Jenny is seriously drunk. He feels as if he is in an N-dimension Euclidean space, wandering aimlessly. In each step, he walks toward some direction and the “length” of each step will not exceed R. Technically speaking, Jenny is initially located at the origin of the N-dimension Euclidean space. Each step can be represented by a random N-dimension vector(x1, x2,..... ,xn) chosen uniformly from possible positions satisfying xi>=0 and x1^2 + x2^2 + ....<=R^2.

Assume the expectation of his coordinate after his first step is (y1, y2,......yn). He wants to know the minimum yi .

There are several (about 10000) test cases, please process till EOF.

Each test case, only one line contains two integers N and R, representing the dimension of the space and the length limit of each step.(1<=n<=2

提交代码