Geeksforgeeks

Error

×

Leaderboard

Showing:

Handle | Score |
---|---|

@Ibrahim Nash | 5725 |

@blackshadows | 5685 |

@akhayrutdinov | 5111 |

@mb1973 | 4989 |

@Quandray | 4908 |

@saiujwal13083 | 4156 |

@sanjay05 | 3762 |

@marius_valentin_dragoi | 3511 |

@sushant_a | 3453 |

@KshamaGupta | 3318 |

@the_coder95 | 3302 |

Complete Leaderboard | |

Handle | Score |

@avaiesshaik782 | 662 |

@arpitsatnalika | 629 |

@code_it_ | 591 |

@prakharxyz | 583 |

@tujhekya | 542 |

@Rahul Jadhav 1 | 458 |

@sivanandh03 | 448 |

@satyam0460 | 433 |

@iamronak | 424 |

@imnm | 424 |

@18eumc107 | 421 |

Complete Leaderboard |

Nobita has his exam on the way. Nobita is trying really hard to clear the examinations this time. So, he is practicing quite often. One day while practicing he faces a problem.** The problem is as follows:** Given a string **S** of **lowercase characters**, find out whether the summation of **'X'** and **'Y'** is** even or odd**, where

**Input:**

The first line of input contains an integer **T** denoting the number of test cases. Then **T** test cases follow. The first and only line of each testcase contains **S**.

**Output:**

For each test case, in a new line, print "**EVEN**" if **X+Y is even,** else print "**ODD**" without quotes.

**Constraints:**

1 <= T <= 100

1 <= |S| <= 1000

**Example:**

**Input:**

2

abbbcc

nobitaa

**Output:**

ODD

EVEN

**Explanation:**

**Testcase1:** X=0 and Y=1 so (X+ Y) = ODD.

'a' occupies 1st place(odd) in english alphabets and its frequency is odd(1), 'b' occupies 2nd position(even) but its frequency is odd(3) so it doesn't get counted , 'c' occupies 3rd position but its frequency is 2(even) so it also does't get counted.

**Testcase2:** X=0 and Y=2 so (X+ Y)= EVEN.

'n' occupies 14th position(even) in english alphabets but its frequency is odd(1) so it doesn't get counted. 'o' occupies 15th position and its frequency is odd(1). 'b' occurs at 2nd position(even) but its frequency is odd(1), 'i' occurs at 9th position(odd) and its frequency is also odd(1) and so on.

Login to report an issue on this page.

We strongly recommend solving this problem on your own before viewing its editorial. Do you still want to view the editorial?

Yes
Help Nobita

...

Please choose 'ReadOnlyMode' if you needn't to 'Edit' the problem e.g. viewing OJ's solution, TestCase Files (TCFs), TimeLimit etc.