Problem: 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.

Examples

Input

7
aogogob


Output

a***b


Input

13
ogogmgogogogo


Output

***gmg***


Input

9
ogoogoogo


Output

*********

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***".

Solution (in JAVA):

Solution:
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.Arrays;
import java.util.StringTokenizer;

public class Filters {
	public static BufferedReader sc = new BufferedReader(new InputStreamReader(System.in));
	public static StringTokenizer st;
	public static PrintWriter pw = new PrintWriter(System.out);
	final static boolean debugmode = true;
	public static int k = 7; // for 10^9 + k mods.
	public static long STMOD = 1000000000 + k; // 10^9 + k
	public static void main(String[] args) throws IOException{
		int l = getInt();
		String toload = getString();
		String[] a= new String[99];
		a[0] = "ogo";
		for(int i = 1;i<a.length;i++){
			a[i] = a[i-1]+"go";
		}
		for(int i = a.length-1;i >= 0;i--){
			toload = toload.replace(a[i],"***");
		}
		submit(toload,true);
		
	}
	public static void setInputFile(String fn) throws IOException{
		sc = new BufferedReader(new FileReader(fn));
	}
	public static void setOutputFile(String fn) throws IOException{
		 pw = new PrintWriter(new BufferedWriter(new FileWriter(fn)));
	}
	public static int GCD(int a, int b) {
		   if (b==0) return a;
		   return GCD(b,a%b);
	}
	public static double log(int k, int v){
		return Math.log(k)/Math.log(v);
	}
	
	public static long longpower(int a,int b){
		long[] vals = new long[(int) (log(b,2)+2)];
		vals[0] = a;
		vals[1] = a*a;
		for(int i = 1;i<vals.length;i++){
			vals[i] = vals[i-1]*vals[i-1];
		}
		long ans = 1;
		int cindex = 0;
		while(b != 0){
			if (b % 2 == 1){
				ans *= vals[cindex];
			}
			cindex += 1;
			b /= 2;
		}
		return ans;
		
		
	}
	
	public static void debug(String toPrint){
		if(!debugmode) {return;}
		pw.println("[DEBUG]: "+toPrint);
	}
	public static void  submit(int[] k,boolean close){
		pw.println(Arrays.toString(k));
		if(close){
			pw.close();
		}
	}
	public static void submit(int p,boolean close){
		pw.println(Integer.toString(p));
		if(close){
			pw.close();
		}
	}
	public static void submit(String k,boolean close){
		pw.println(k);
		if(close){
			pw.close();
		}
	}
	public static void submit(double u,boolean close){
		pw.println(Double.toString(u));
		if(close){
			pw.close();
		}
	}
	public static void submit(long lng,boolean close){
		pw.println(Long.toString(lng));
		if(close){
			pw.close();
		}
		
	}
	public static void submit(){
		pw.close();
	}
	public static int getInt() throws IOException{
		if (st != null && st.hasMoreTokens()){
			return Integer.parseInt(st.nextToken());
		}
		st = new StringTokenizer(sc.readLine());
		return Integer.parseInt(st.nextToken());
	}
	public static long getLong() throws IOException{
		if (st != null && st.hasMoreTokens()){
			return Long.parseLong(st.nextToken());
		}
		st = new StringTokenizer(sc.readLine());
		return Long.parseLong(st.nextToken());
	}
	public static double getDouble()throws IOException{
		if (st != null && st.hasMoreTokens()){
			return Double.parseDouble(st.nextToken());
		}
		st = new StringTokenizer(sc.readLine());
		return Double.parseDouble(st.nextToken());
	}
	public static String getString()throws IOException{
		if(st != null && st.hasMoreTokens()){
			return st.nextToken();
		}
		st = new StringTokenizer(sc.readLine());
		return st.nextToken();
	}
	public static String getLine() throws IOException{
		return sc.readLine();
	}
	public static int[][] readMatrix(int lines,int cols) throws IOException{
		int[][] matrr = new int[lines][cols];
		for (int i = 0;i < lines;i++){
			for(int j = 0;j < cols;j++){
				matrr[i][j] = getInt();
			}
		}
		return matrr;
	}
	public static int[] readArray(int lines) throws IOException{
		int[] ar = new int[lines];		
		for (int i = 0;i<lines;i++) ar[i] =getInt();
		return ar;
	}
	
}