Problem 070: When I Say Code, You Say Quest!

Problem made by Lockheed Martin, is CodeQuest 2014 Problem 1
This problem has a difficulty of 5


Introduction


When I say CODE, you say QUEST!

CODE……QUEST!
CODE……QUEST!

We are very enthusiastic about this year’s CodeQuest competition. We would like you to join in the enthusiasm by writing a program which exclaims CODE for an input number which is a multiple of 3, QUEST for an input number which is a multiple of 7 and CODEQUEST for an input number which is a multiple of both 3 and 7.

Program Input


The file Prob01.in.txt will contain a list of numbers, one per line.

Example Input:


1
3
7
5
9
10
11
21
42
52

Program Output


For each input number:
• If the number is a multiple of 3, output CODE.
• If the number is a multiple of 7, output QUEST.
• If the number is a multiple of both 3 and 7, output CODEQUEST.
• Otherwise, just output the number which was read in.

Example Output:


1
CODE
QUEST
5
CODE
10
11
CODEQUEST
CODEQUEST
52