Practice on Toph

Participate in exhilarating programming contests, solve unique algorithm and data structure challenges and be a part of an awesome community.

Who Is the Organizer?

By siam009 · Limits 1s, 512 MB

In Sylhet Engineering College a lots of events take place. Some events are oraganized by a single organization or sometimes events are organized by multiple organization. Sometimes its too much confusing that who is the main organizer of the event.But by our previous experience we can notice some simple pattern. Sounds interesting? Some basic patterns are :

  1. Events name that consists of at least a word "programming" are organized by "SEC Programming Club"
  2. Events name that consists of at least a word "photo" are organized by "SECPA"
  3. Events name that consists of at least a word "developer" are organized by "SEC Developers Club"
  4. Events name that consists of at least a word "EEE" are organized by "EEE Department"
  5. Events name that consists of at least a word "CE" are organized by "CE Department"
  6. Events name that consists of at least a word "CSE" are organized by "CSE Department”
  7. Events name that consists of at least a word "cultural" or "culture" are organized by "Shoroborno”

If a event is not organized by a specific department try to find out if it is organized by any club. For simplicity, you must consider all the events that are organized by "SEC Programming Club" or "SEC Developers Club" is organized by "CSE Department". Sylhet Engineering College (SEC) has three department (CSE, CIVIL, EEE).

One of my friend notices some events name and he wants to know who is the organizer of this event. Help him find out the organizer name by a events name.
If a event is not organized by any department or any club simply assume that the organizer is "Sylhet Engineering College". For simplicity, you can ignore others club which are not mentioned in this statement and events name are case insensitive. For example, Programming, programming and PROGRAMMING are same.

NB: If a event is organized by both a department and a club you must output the Department name only. No event is organized by multiple department.

Input

The first line contains the single integer t (1≤t≤100) — the number of test cases.
The next t lines contains t test cases. Each test case consists of a event name. An event may consists of a single word or multiple word.Each line may consists of at most 100 character. Event name contains letters (A-Z, a-z, 0-9) and space.

Output

For each case print case number in the first line. Then print the Organizer name. Follow sample input output for better understanding.

Sample

InputOutput
4
SEC programming contest
CSE Fest
SEC Pitha Utshob
1st photo exhibition
Case 1: CSE Department
Case 2: CSE Department
Case 3: Sylhet Engineering College
Case 4: SECPA

Discussion

Statistics


73% Solution Ratio

omar24Earliest, Mar '20

Onik123Fastest, 0.0s

omar24Lightest, 0 B

anonyo.akandShortest, 315B

Submit

Login to submit

Toph uses cookies. By continuing you agree to our Cookie Policy.