DMOPC '18 Contest 3 P0 - Bob and ICS Class

View as PDF

Points: 3 (partial)
Time limit: 2.0s
Memory limit: 64M

Author:
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

Bob is trying to live-stream a video in his ICS class! He's learned that colours are represented by a triple , where is the intensity of red, is the intensity of green, and is the intensity of blue. He knows that humans don't perceive the higher end of the spectrum well, so the data can be compressed into , where is the largest integer less than or equal to , to save space while transmitting.

However, this means that sometimes two different colours, will after applying the compression, become the same colour! For example, the colours and will both become after compression.

Thus Bob asks you: will the given two colours become the same colour after compression?

Input Specification

The first line of input will contain 3 integers, , the RGB values of the first colour.
The second line of input will contain 3 integers, , the RGB values of the second colour.

All integers in the input are in the range .

Output Specification

Output Colourful if the two colours become different colours following the compression algorithm, or Dull otherwise.

Sample Input 1

1 100 20
1 4 21

Sample Output 1

Colourful

Sample Input 2

1 1 1
1 1 1

Sample Output 2

Dull