This page is still under construction.

Parts of this page are still being built. What you see may change.

Does Not Compute

Time limit2sMemory limit1024 MB

Summary
Read arithmetic statements of the form A op B = C, check whether each result is correct, and report OKAY or DOES NOT COMPUTE per case.
Level

Easy2 of 10

Topics
Implementation, Math, Simulation
Solved
No attempts yet

Problem

In some science fiction stories and films, when computers encounter an illogical situation, their response is often "DOES NOT COMPUTE." For this problem, you will write a computer program which can simulate this behavior whenever it sees arithmetic statements that are incorrect.

Input

The input file contains multiple test cases, each of which describes an arithmetic statement. Each statement is of the form "A OPERATOR B = C", where A, B, C are integers, and OPERATOR is "+", "-", or "*" indicating addition, subtraction, or multiplication. The integers A and B are both in the range 1 to 999, and all tokens are separated by whitespace (spaces or newlines). The last test case is followed by a line containing a single zero.

Output

For each test case, print the case number (beginning with 1) followed by either OKAY (if the statement is correct), or DOES NOT COMPUTE (if the statement is incorrect).

Examples1

  1. Example 1

    Input
    1 + 1 = 2
    3 * 5 = 15
    100 - 10 = 10
    0
    
    Expected output
    Case 1: OKAY
    Case 2: OKAY
    Case 3: DOES NOT COMPUTE