SP7034 CROBOTS - Crashing Robots

Description

In a modernized warehouse, robots are used to fetch the goods. Careful

Input Format

The first line of input is K, the number of test cases. Each test case starts with one line consisting of two integers, 1 The second line contains two integers, 1

Output Format

Output one line for each test case: - Robot i crashes into the wall, if robot i crashes into a wall. (A robot crashes into a wall if Xi = 0, Xi = A + 1, Yi = 0 or Yi = B + 1.) - Robot i crashes into robot j, if robots i and j crash, and i is the moving robot. - OK, if no crashing occurs.