407091: GYM102697 062 Delete Characters

Memory Limit:256 MB Time Limit:1 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

062. Delete Characterstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard output

Given a string S and a list of characters C, print string S after removing all of the characters given in list C.

Input

The first line is the string S to be modified. The second line contains integer N, which is the number of different characters to be deleted. The following N lines contain the characters to be deleted.

Output

A single string S after deleting all of the characters that are given to be deleted.

ExampleInput
howdy
2
w
y
Output
hod

加入题单

算法标签: