{"trustable":false,"sections":[{"title":"","value":{"format":"HTML","content":"\u003cp\u003e \u0026nbsp;\u003c/p\u003e \n\u003cp\u003e Teering is a little boy. He is trying to draw the national flag of Bangladesh. Being smart he knows he has to maintain the correct ratio and measurement while drawing the flag. You know the rules of drawing the national flag, don\u0027t you? If not, no worries, Teering is here to help you:\u003c/p\u003e \n\u003cp\u003e The national flag of Bangladesh consist of a green rectangle with a red circle inside it. The ratio of the length and width of the rectangle is \u003cb\u003e100 : 60\u003c/b\u003e (i.e. if the length is 100 units then the width will be 60 units). The radius of the circle is \u003cb\u003e20%\u003c/b\u003e of the length (i.e. if the length is 100 units then the radius of the circle will be 20 units). To get the center of the circle you need to draw a horizontal line dividing the \u003cb\u003ewidth in equal portion\u003c/b\u003e and draw a vertical line dividing the \u003cb\u003elength in 45 : 55 ratio\u003c/b\u003e (i.e. if the length of the rectangle is 100 then 45 units will be in left and 55 units will be on the right side of the line). The crossing of the two lines will be the center of the circle. Here is an illustrated picture for better understanding.\u003c/p\u003e \n\u003cp\u003e \u0026nbsp;\u003c/p\u003e \n\u003cdiv\u003e \n \u003cimg align\u003d\"BOTTOM\" alt\u003d\"\\epsfbox{p12611.eps}\" height\u003d\"384\" src\u003d\"http://uva.onlinejudge.org/external/126/p12611.jpg\" width\u003d\"434\" /\u003e\n\u003c/div\u003e \n\u003cp\u003e Now Teering has started to draw a flag. He has already drawn the circle of radius \u003ci\u003eR\u003c/i\u003e centered at the \u003cb\u003eorigin\u003c/b\u003e in a 2D co-ordinate system. Now he needs to determine the corner of the rectangle so that he can join them to complete the flag. Can you help him?\u003c/p\u003e \n\u003cp\u003e \u0026nbsp;\u003c/p\u003e \n\u003ch2\u003e \u003ca\u003e Input\u003c/a\u003e\u0026nbsp;\u003c/h2\u003e \n\u003cp\u003e The first line of input will contain an integer \u003ci\u003eT\u003c/i\u003e (\u003ci\u003eT\u003c/i\u003e \u0026lt; 101) denoting the number of test cases. Each of the following \u003ci\u003eT\u003c/i\u003e lines will contain an integer \u003ci\u003eR\u003c/i\u003e (\u003ci\u003eR\u003c/i\u003e \u0026lt; 1001) each denoting the radius of the circle.\u003c/p\u003e \n\u003cp\u003e \u0026nbsp;\u003c/p\u003e \n\u003ch2\u003e \u003ca\u003e Output\u003c/a\u003e\u0026nbsp;\u003c/h2\u003e \n\u003cp\u003e For each input output five lines. The first line will contain the case number. The following four lines will denote the upper left, upper right, lower right and \u003cb\u003elower left\u003c/b\u003e coordinates of the rectangle for the flag respectively. You have to print \u003ci\u003ex\u003c/i\u003e coordinate and \u003ci\u003ey\u003c/i\u003e coordinate separated by space in each line. You may assume that input is given in such that the corners will \u003cb\u003ealways be in integer\u003c/b\u003e coordinates. See sample input output for details.\u003c/p\u003e \n\u003cp\u003e \u0026nbsp;\u003c/p\u003e \n\u003ch2\u003e \u003ca\u003e Sample Input\u003c/a\u003e\u0026nbsp;\u003c/h2\u003e \n\u003cp\u003e \u0026nbsp;\u003c/p\u003e \n\u003cpre\u003e\r\n2\r\n20\r\n100\r\n\u003c/pre\u003e \n\u003cp\u003e \u0026nbsp;\u003c/p\u003e \n\u003ch2\u003e \u003ca\u003e Sample Output\u003c/a\u003e\u0026nbsp;\u003c/h2\u003e \n\u003cp\u003e \u0026nbsp;\u003c/p\u003e \n\u003cpre\u003e\r\nCase 1:\r\n-45 30\r\n55 30\r\n55 -30\r\n-45 -30\r\nCase 2:\r\n-225 150\r\n275 150\r\n275 -150\r\n-225 -150\r\n\u003c/pre\u003e \n\u003cp\u003e \u0026nbsp;\u003c/p\u003e \n\u003cp\u003e \u0026nbsp;\u003c/p\u003e \n\u003cp\u003e \u003cbr /\u003e \u003cb\u003eProblemsetter:\u003c/b\u003e Towhidul Islam Talukder\u003cbr /\u003e \u003cb\u003eSpecial Thanks:\u003c/b\u003e Anna Fariha\u003c/p\u003e \n\u003cp\u003e \u0026nbsp;\u003c/p\u003e \n\u003cp\u003e \u0026nbsp;\u003c/p\u003e"}}]}