GFSSOC '15 Winter J1 - Festive Fardin

View as PDF

Submit solution

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

Problem type

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 1


Sample Output 1

Jingle Bells

Sample Input 2

cyan of sky
forest green

Sample Output 2



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

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