您当前处于兼容模式。某些功能在此模式下不可用。我们强烈建议在现代浏览器上切换为标准模式以获得更好的体验。 标准模式 隐藏

#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