Թաքցված խնդիր
|Այս խնդիրը թաքցված է խմբագրական խրհրդի անդամի կողմից քանի որ կամ այն ոչ ճիշտ լեզվով է գրված,|կամ թեստային տվյալներն են սխալ, կամ խնդրի ձևակերպումը պարզ չէ։|

ACM_0115 - JANES FIRST WORDS

   Jane (my ~2 years-old baby daughter) has started speaking some simple words now. "Daddy" and "Mommy" are the two common first words. Hearing those words for the first time are indeed beautiful and memorable.

   Last year, Steven really wanted to record when his baby called him for the first time. So, Steven put a microphone and sound capture program near Jane's baby cot (baby's bed). This microphone captured Jane's sounds and the program transmitted the list of words captured to Steven. He wrote a program  to  detect  the  moment  when   Jane's   first   call   him:   "daddy"   (or   its   variants). This time, you will also write similar program.

Input

   You are given one word per line. These are the list of captured sounds.

   Each line contains only lowercase alphabet without any whitespaces and at most 20 characters. Input is terminated with an EOF.

Output

   For each word/line, output "She called me!!!" in one line if that word matches this regular expression below. Otherwise, output "Cooing" in one line (to say that this is just some baby soft murmuring sound).

   Note: Quotes are only for clarity. 

   The regular expression (regex): "da+dd?(i|y)".  If you are not familiar with regex, let me explain: '+' means one or more of the preceding element. '?' means zero or one of the preceding element. A vertical bar '|' separates alternatives.

   Parentheses are used to define the scope and precedence of the operators.

Examples

stdin

stdout

1

aaaa

eeeh

auwww

dda

daaada

daddy

ouuuww

dadi

Cooing

Cooing

Cooing

Cooing

Cooing

She called me!!!

Cooing

She called me!!!


Ավելացրեց.Հրանտ Հովհաննիսյան
Ամսաթիվ.2014-02-01
Ժամանակի սահմանափակումը.1s
Ծրագրի տեքստի սահմանափակումը.50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Լեզուներ.Բոլորը բացի ASM32 ASM64 GAWK CLPS CLOJURE D ERL FSHARP FORTRAN GOSU HASK ICON ICK NEM NIM OBJC-CLANG PICO PIKE PYPY PYPY3 PY_NBC RUST SCM guile CHICKEN SED TCL WHITESPACE
Աղբյուրը.Thailand Southern 2013.F

© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.