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.awt.Point;
import java.util.*;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.*;
import java.util.*;

public class Main {
	//////
	static class FastReader {
		BufferedReader br;
		StringTokenizer st;

		public FastReader() {
			br = new BufferedReader(new InputStreamReader(System.in));
		}

		String next() {
			while (st == null || !st.hasMoreElements()) {
				try {
					st = new StringTokenizer(br.readLine());
				} catch (IOException e) {
					e.printStackTrace();
				}
			}
			return st.nextToken();
		}

		int nextInt() {
			return Integer.parseInt(next());
		}

		long nextLong() {
			return Long.parseLong(next());
		}

		double nextDouble() {
			return Double.parseDouble(next());
		}

		String nextLine() {
			String str = "";
			try {
				str = br.readLine();
			} catch (IOException e) {
				e.printStackTrace();
			}
			return str;
		}
	}

	//////
	public static long modularExponentiation(long x, long n, long M) {
		long result = 1;
		while (n > 0) {
			if (n % 2 == 1)
				result = (result * x) % M;
			x = (x * x) % M;
			n = n / 2;
		}
		return result;
	}

	public static long modularExponentiation1(long x, long n) {
		long result = 1;
		while (n > 0) {
			if (n % 2 == 1)
				result = (result * x);
			x = (x * x);
			n = n / 2;
		}
		return result;
	}

	/////

	static public int fun(int num) {
		int prod = 1;
		while (num > 0) {
			if (num % 10 != 0) {
				prod = prod * (num % 10);
			}
			num = num / 10;
		}
		return prod;
	}

	public static boolean dfs(int x, int find, boolean[] visited, int[][] matrix) {

		boolean ans = false;
		if (x == find) {
			ans = true;
			return true;
		}
		for (int i = 0; i < 26; i++) {
			if (visited[i] == false && matrix[x][i] == 1) {
				visited[i] = true;
				ans = ans || dfs(i, find, visited, matrix);
			}
		}

		return ans;
	}

	static int lis(int arr[], int n, int k, int b) {
		int lis[] = new int[n];
		int i, j, max = 0;

		/* Initialize LIS values for all indexes */
		for (i = 0; i < n; i++)
			lis[i] = 1;

		/* Compute optimized LIS values in bottom up manner */
		for (i = 1; i < n; i++)
			for (j = 0; j < i; j++)
				if (arr[i] >= k * arr[j] + b && lis[i] < lis[j] + 1)
					lis[i] = lis[j] + 1;

		/* Pick maximum of all LIS values */
		for (i = 0; i < n; i++)
			if (max < lis[i])
				max = lis[i];

		return max;
	}

	public static double fun(int n, int r) {
		double ans = 1;

		for (int i = 1; i <= n; i++) {
			ans = ans * i;
		}

		for (int i = 1; i <= n - r; i++) {
			ans = ans / i;
		}
		for (int i = 1; i <= r; i++) {
			ans = ans / i;
		}

		return ans;
	}
	// static long Mod=1000000007;
	// static long ans=0;

	public static void change(int N, char[][] A) {

		for (int j = 0; j < N; j++) {
			double ans = 0;
			int flag = 0;
			for (int i = 0; i < N; i++) {
				if (A[i][j] == '0') {
					ans++;
				}
			}
			if (ans >= (double) N / (double) 2) {
				for (int i = 0; i < N; i++) {
					if (A[i][j] == '0') {
						A[i][j] = '1';
					} else
						A[i][j] = '0';
				}
			}
		}

	}

	public static int countr(int N, char[][] A) {

		int ans = 0;
		for (int i = 0; i < N; i++) {
			int flag = 0;
			for (int j = 0; j < N; j++) {
				if (A[i][j] == '0') {
					flag = 1;
					break;
				}
			}
			if (flag == 1) {

			} else
				ans++;
		}

		return ans;
	}

	public static String fun(String A) {

		if (A.length() % 2 == 1) {
			return A;
		}

		String a1 = fun(A.substring(0, A.length() / 2));
		String a2 = fun(A.substring(A.length() / 2));
		// String b1 = A.substring(0, B.length() / 2);
		// String b2 = A.substring(B.length() / 2);
		if (a1.compareTo(a2) < 0) {
			return a1 + a2;
		} else
			return a2 + a1;

	}

	public static void main(String[] args) throws IOException {

		FastReader scan = new FastReader();
		PrintWriter pw = new PrintWriter(System.out);

		int N=scan.nextInt();
		String s=scan.next();
		
		for(int i=0;i<N;i++){
			if(i+2<N&&s.charAt(i)=='o'&&s.charAt(i+1)=='g'&&s.charAt(i+2)=='o'){
				System.out.print("***");
				int j=i+1;
				while(j+1<N&&s.charAt(j)=='g'&&s.charAt(j+1)=='o'){
					j=j+2;
				}
				i=j-1;
			}else{
				System.out.print(s.charAt(i));
			}
		}
		
		
	}
}