Problem Description

Words are provided one by one. Output all words until you see the word stop (case sensitive). Do not output stop itself.

Input Format

One line: words separated by space (contains stop at least once).

Output Format

Words before stop, separated by space.

Sample Test Case

Input:
i am learning stop python is nice
Output:
i am learning

Constraints

Total words

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next