Problem Description

Given totalSteps N and cancelAt (1-based). Run an async loop from 1..N. If i reaches cancelAt, stop and print CANCELLED i. If cancelAt is 0, complete and print DONE N.

Input Format

One line: N cancelAt.

Output Format

One line message.

Sample Test Case

Input:
10 4
Output:
CANCELLED 4

Constraints

1

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next