Mock CCC '18 Contest 5 J1 - Carol's Cute Card

View as PDF

Submit solution


Points: 3 (partial)
Time limit: 1.0s
Memory limit: 1G

Author:
Problem type

It's Valentine's Day! This is Carol's favorite day!

Carol is still extremely bitter about CCC being run on Valentine's Day. She's so bitter about it that she will be angry if she sees the acronym CCC anywhere. Don't make Carol angry. You won't like her when she's angry.

She gets a Valentine's Day card signed by a secret admirer. She can't quite make out the signature, so she gets her friend Tudor to transcribe the signature for her. Tudor knows that she doesn't want to see the acronym CCC, so he will refuse to transcribe the signature if it contains the substring CCC. Keep Tudor safe.

Constraints

The string will be of length at most 10.

The string will only contain uppercase letters.

Input Specification

The input consists of a single string, the signature of the card.

Output Specification

Output, on a single line, YES if Tudor should transcribe the signature for Carol.

Output NO otherwise.

Sample Input

CCC

Sample Output

NO

Sample Input

TUDOR

Sample Output

YES

Comments


  • 1
    quantum  commented on Feb. 15, 2018, 8:32 p.m.
    #!/bin/sh
    exec yes CCC
    

    • 1
      kipply  commented on Feb. 15, 2018, 8:50 p.m.

      Keep Tudor safe!