#K53557. Case-Insensitive Character Removal From a String

    ID: 29557 Type: Default 1000ms 256MiB

Case-Insensitive Character Removal From a String

Case-Insensitive Character Removal From a String

Given a string s and a character c, your task is to remove all occurrences of c from s in a case-insensitive manner. In other words, the removal should eliminate both c and its uppercase or lowercase variants.

Formally, if we denote the removal function as \( f(s, c) \), then

\( f(s, c) = \text{concatenation of all characters in } s \text{ such that } \forall x \in s,\; x \text{ is kept if } \text{lower}(x) \neq \text{lower}(c) \).

For instance, if s is "HeLLo" and c is 'l', then the output should be "Heo".

inputFormat

The input is provided via stdin and consists of two lines:

  1. The first line contains the string s.
  2. The second line contains a single character c.

outputFormat

The output should be printed to stdout and is the string after removing all occurrences of the character c (in both uppercase and lowercase) from s.

## sample
hello
h
ello