#K84077. Determine the Winner

    ID: 36339 Type: Default 1000ms 256MiB

Determine the Winner

Determine the Winner

In this problem, two players, Lina and Tara, compete in a game. You are given an array \( A \) of \( N \) integers. The rules of the game are as follows:

  • If all the elements of the array are equal (i.e. \( \forall i,j: a_i = a_j \)), then the winner is Tara.
  • If there is at least one element that differs, then the winner is Lina.

Your task is to process multiple test cases. For each test case, determine the winner based on the above rules.

inputFormat

The first line of input contains an integer \( T \), representing the number of test cases. The description of each test case is as follows:

  1. The first line of each test case contains an integer \( N \), the number of elements in the array.
  2. The second line contains \( N \) space-separated integers \( A_1, A_2, \dots, A_N \), representing the elements of the array.

outputFormat

For each test case, output on a new line the winner of the game: either Lina or Tara.

## sample
3
3
10 1 5
2
2 2
4
8 12 6 4
Lina

Tara Lina

</p>