402591: GYM100814 F Geometry
Memory Limit:1024 MB
Time Limit:1 S
Judge Style:Text Compare
Creator:
Submit:0
Solved:0
Description
F. Geometrytime limit per test1 secondmemory limit per test1024 megabytesinputstandard inputoutputstandard output
Geometry is a very important field in mathematics, Squares and rectangles are essential shapes in geometry, both of them have 4 right angles, but a square is a special case of a rectangle where width and height are the same.
The figure below shows a square on the left and a rectangle on the right:
If you have the width and the height of a 4 right angled shape, can you figure out if it is a square or a rectangle?
InputThe first line contains T, the number of test cases, for each test case there is a line with two integers (1 ≤ w, h ≤ 1, 000, 000) representing width and height, respectively.
OutputFor each test case, print one line consists of 'Square' if the shape is a square, otherwise print 'Rectangle' if it is a rectangle.
ExamplesInput3Output
10 10
13 200
300 300
Square
Rectangle
Square