Skip to main content
Tuesday (24.11.2026) at 20:00: ALGOR Contest: Round #4 (Special Challenge) starts!

~/algor $ cat problems/string-belgini-ochirish

Delete a letter

Easy 1000 ms 128 MB 26%
Share

A string $s$ of lowercase Latin letters and a letter $c$ are given. Delete every letter $c$ from the string and print the result. If every letter is deleted, print an empty line.

Cutting the given character out of the string

Input

The first line contains the string $s$, the second line a single letter $c$.

Output

The resulting string on one line.

Note

$1 \le |s| \le 10^{5}$
$s$ consists of lowercase Latin letters (a–z) only
$c$ is a lowercase Latin letter

Examples

Input #1
banana
a
Output #1
bnn
Input #2
kitob
z
Output #2
kitob

Sign in to submit a solution

Signing up is free and takes a minute.