#abc282c. [abc282_c]String Delimiter
[abc282_c]String Delimiter
Problem Statement
You are given a string of length consisting of lowercase English letters, ,
, and "
. It is guaranteed that contains an even number of "
.
Let be the number of "
in . For each , the characters from the -th "
through the -th "
are said to be enclosed.
Your task is to replace each ,
in that is not an enclosed character with .
and print the resulting string.
Constraints
- is an integer between and , inclusive.
- is a string of length consisting of lowercase English letters,
,
, and"
. - contains an even number of
"
.
Input
The input is given from Standard Input in the following format:
Output
Print the answer.
Sample Input 1
8
"a,b"c,d
Sample Output 1
"a,b"c.d
In , "a,b"
are enclosed characters, and c,d
are not.
The ,
in that is not an enclosed character is the seventh character from the left in , so replace that character with .
to get the answer.
Sample Input 2
5
,,,,,
Sample Output 2
.....
Sample Input 3
20
a,"t,"c,"o,"d,"e,"r,
Sample Output 3
a."t,"c."o,"d."e,"r.