#K35237. Determine Shop Type

    ID: 25487 Type: Default 1000ms 256MiB

Determine Shop Type

Determine Shop Type

You are given an integer \(T\) representing the number of test cases. Each test case consists of a pair of integers \(x\) and \(y\) which represent a coordinate. Based on these coordinates, you are required to determine the type of shop from the following categories:

  • Groceries: if both \(x\) and \(y\) are even, i.e., \(x \bmod 2 = 0\) and \(y \bmod 2 = 0\).
  • Electronics: if both \(x\) and \(y\) are odd, i.e., \(x \bmod 2 = 1\) and \(y \bmod 2 = 1\).
  • Clothing: otherwise.

Your task is to read the input from stdin and output the shop type for each coordinate on a separate line to stdout.

inputFormat

The first line contains a single integer \(T\) (the number of test cases). Following this, there are \(T\) lines, each containing two space-separated integers \(x\) and \(y\) representing the coordinates.

Example:

4
2 4
3 5
6 7
5 5

outputFormat

For each test case, output a single line containing the shop type. The shop type should be one of the following: Groceries, Electronics, or Clothing.

Example corresponding to the input above:

Groceries
Electronics
Clothing
Electronics
## sample
1
2 4
Groceries

</p>