Problem9164--ABC282 —— C - String Delimiter

9164: ABC282 —— C - String Delimiter

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 512 MiB

Description

You are given a string $S$ of length $N$ consisting of lowercase English letters, `,`, and `"`. It is guaranteed that $S$ contains an even number of `"`.

Let $2K$ be the number of `"` in $S$. For each $i=1,2,\ldots,K$, the characters from the $(2i-1)$-th `"` through the $(2i)$-th `"` are said to be enclosed.

Your task is to replace each `,` in $S$ that is not an enclosed character with `.` and print the resulting string.

Input

The input is given from Standard Input in the following format:

```
$N$
$S$
```

Output

Print the answer.

Constraints

-   $N$ is an integer between $1$ and $2\times 10^5$, inclusive.
-   $S$ is a string of length $N$ consisting of lowercase English letters, `,`, and `"`.
-   $S$ contains an even number of `"`.

Sample 1 Input

8
"a,b"c,d

Sample 1 Output

"a,b"c.d
In S, "a,b" are enclosed characters, and c,d are not.
The , in S that is not an enclosed character is the seventh character from the left in S, so replace that character with . to get the answer.

Sample 2 Input

5
,,,,,

Sample 2 Output

.....

Sample 3 Input

20
a,"t,"c,"o,"d,"e,"r,

Sample 3 Output

a."t,"c."o,"d."e,"r.

HINT

相同题目:ABC282

Source/Category