Under construction

Still being built. Things may change

Emoji

Time limit1sMemory limit512 MB

Summary
Given a short message, determine for each line whether it contains the Slack cat emoji expressed as an ASCII shortcode.
Level

Easy1 of 10

Topics
String, Implementation, String matching
Solved
No attempts yet

Problem

Slack, the messenger software used by many companies, supports inserting emoji using ASCII characters alone. Implement this feature.

Input

A message is given. The message has at most 30 lines, and each line is at most 30 characters long.

Output

For each line, print YES if the emoji 🐱 is present, and NO otherwise. Assume that no custom emoji has been registered.

Hint

This is based on the Slack web version of March 31, 2019.

Examples1

  1. Example 1

    Input
    :cat: goes meow.
    :dog: goes woof.
    cat and dog fought. who won?
    Expected output
    YES
    NO
    NO