public class HelloWorld
{
public static void Main(string[] args)
{
// Test case process
Console.Write("No. of test cases: ");
int T = Convert.ToInt32(Console.ReadLine());
int X; // Uber
int Y; // Grab
// Storage of results
string[] results = new string[T];
// INPUT
for (int i = 0; i < T; i++)
{
string[] input = Console.ReadLine().Split(' ');
X = Convert.ToInt32(input[0]);
Y = Convert.ToInt32(input[1]);
// conditions
if (X < Y)
{
results[i] = "FIRST";
}
else if (X > Y)
{
results[i] = "SECOND";
}
else
{
results[i] = "ANY";
}
}
// OUTPUT
Console.WriteLine("\nResult:");
foreach (string result in results)
{
Console.WriteLine(result);
}
}
using System;
public class HelloWorld { public static void Main(string[] args) { // Test case process Console.Write("No. of test cases: "); int T = Convert.ToInt32(Console.ReadLine());
}