Festive Fardin

View as PDF

Submit solution

Points: 3
Time limit: 2.0s
Memory limit: 32M

Authors:
Problem type
Allowed languages
Ada, Assembly, Awk, Brain****, C, C#, C++, COBOL, CommonLisp, D, Dart, F#, Forth, Fortran, Go, Groovy, Haskell, Intercal, Java, JS, Kotlin, Lisp, Lua, Nim, ObjC, OCaml, Octave, Pascal, Perl, PHP, Pike, Prolog, Python, Racket, Ruby, Rust, Scala, Scheme, Sed, Swift, TCL, Text, Turing, VB, Zig

As you know, Christmas time is filled with many colours but the most festive ones are red, green, and white. As Fardin is walking around school, he looks at people's shirt and pants colours and wants to determine whether they're suitably dressed for Christmas. If both their shirt and pant colours are one of red, green, or white exactly in lowercase, output Jingle Bells. Otherwise output Boring....

Input Specification

The first line of input contains the colour of the person's shirt.

The second line of input contains the colour of the person's pants.

Note: there may be spaces in some of the colour names.

Output Specification

A single string, Jingle Bells or Boring....

Sample Input

red
green

Sample Output

Jingle Bells

Sample input

cyan of sky
forest green

Sample Output

Boring...

Comments


  • 0
    cyopotatoe  commented on June 14, 2020, 6:10 p.m.

    I got so many cases wrong, looked back, and saw I missed a period on "Boring..."


  • 1
    Volc  commented on Jan. 5, 2016, 8:48 a.m. edited

    The first line of input contains the colour of the person's shirt

    The first line of input contains the colour of the person's pants

    The second sentence should read "The second line of input"


    • 0
      awaykened  commented on Jan. 5, 2016, 11:29 a.m.

      thank you ^^

      fixed