#OLD104. Code comment

Code comment

Description

Complete the solution so that it strips all text that follows any of a set of comment markers passed in. Any whitespace at the end of the line should also be stripped out.

Format

Input

There are multiple test cases. For each case, the first line contains a series of characters separated by spaces.The next line contains a string containing various characters and carriage returns(end by '|').

Output

For each test cases, Output removes the commented string.

Samples

# !
apples, pears # and bananas
grapes
bananas !apples
|
apples, pears
grapes
bananas

Hint

There can be no empty rows in the result