#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  string s;
  cin >> s;
  int cost;
  cost = 0;
  int i;
  i = 0;
  char s1 = '#';
  char s2 = '.';
  while (i < n) {
    if (s[i] == s1) {
      if (s[i + 1] == s2) {
        cost += 1;
        s.replace(i + 1, i + 1, "#");
      }
    }
    i += 1;
  }
  cout << s << endl;
}
