Technocup 2017 - Elimination Round 2
A
Interview with Oleg
Codeforces
900
原题
←B →
翻译中…

Polycarp has interviewed Oleg and has written the interview down without punctuation marks and spaces to save time. Thus, the interview is now a string $*s*$ consisting of $*n*$ lowercase English letters.

翻译中…

There is a filler word ogo in Oleg's speech. All words that can be obtained from ogo by adding go several times to the end of it are also considered to be fillers. For example, the words ogo, ogogo, ogogogo are fillers, but the words go, og, ogog, ogogog and oggo are not fillers.

翻译中…

The fillers have maximal size, for example, for ogogoo speech we can't consider ogo a filler and goo as a normal phrase. We should consider ogogo as a filler here.

翻译中…

To print the interview, Polycarp has to replace each of the fillers with three asterisks. Note that a filler word is replaced with exactly three asterisks regardless of its length.

翻译中…

Polycarp has dealt with this problem in no time. Can you do the same? The clock is ticking!

翻译中…

Input

翻译中…

The first line contains a positive integer $*n*$ ($1 ≤ *n* ≤ 100$) — the length of the interview.

翻译中…

The second line contains the string $*s*$ of length $*n*$, consisting of lowercase English letters.

翻译中…

Output

翻译中…

Print the interview text after the replacement of each of the fillers with "***". It is allowed for the substring "***" to have several consecutive occurences.

翻译中…

Note

翻译中…

The first sample contains one filler word ogogo, so the interview for printing is "a***b".

翻译中…

The second sample contains two fillers ogo and ogogogo. Thus, the interview is transformed to "***gmg***".

翻译中…

样例

Input #1
7
aogogob
Output #1
a***b
InputCopy OutputCopy
Input #2
13
ogogmgogogogo
Output #2
***gmg***
InputCopy OutputCopy
Input #3
9
ogoogoogo
Output #3
*********
InputCopy OutputCopy
题目信息
题号
729A
时间限制
1 s
内存限制
256 MB
标签
模拟
字符串

题面与样例版权归 Codeforces 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。