#C3602. Circular List Checker

    ID: 47048 Type: Default 1000ms 256MiB

Circular List Checker

Circular List Checker

This problem requires you to check if a given list of elements is circular. A list is considered circular if it contains at least two elements and its first element is the same as its last element.

You will be given multiple test cases via STDIN. For each test case, output "True" if the list is circular, or "False" otherwise.

Note: The elements in the list are provided as comma separated values. They can be numbers or strings.

inputFormat

The first line contains an integer T representing the number of test cases. The next T lines each contain a list of elements separated by commas.

outputFormat

For each test case, print a single line containing "True" if the list is circular, or "False" otherwise.

## sample
3
1,2,3,1
a,b,c,a
1,2,3,4
True

True False

</p>