11574: ABC384 - A - aaaadaa
[Creator : ]
Description
You are given a string $S$ of length $N$ consisting of lowercase English letters, along with lowercase English letters $c_1$ and $c_2$.
Find the string obtained by replacing every character of $S$ that is not $c_1$ with $c_2$.
Input
The input is given in the following format from Standard Input:
$N$ $c_1$ $c_2$
$S$
Output
Print the answer.
Constraints
- $1\le N\le 100$
- $N$ is an integer.
- $c_1$ and $c_2$ are lowercase English letters.
- $S$ is a string of length $N$ consisting of lowercase English letters.
Sample 1 Input
3 b g
abc
Sample 1 Output
gbg
Replacing a
and c
(which are not b
) with g
in $S=$ abc
results in gbg
, so print gbg
.
Sample 2 Input
1 s h
s
Sample 2 Output
s
It is possible that the resulting string after replacement is the same as the original string.
Sample 3 Input
7 d a
atcoder
Sample 3 Output
aaaadaa
10 b a
acaabcabba
aaaabaabba