import Counter

n = int(input())
s = input()

black = S.count('.')
white = S.count('#')

if black > white:
 for i in range(n):
  if s[i] == '#':
   s[i+1] = '#'
else:
 for s in S:
   for i in range(n):
  if s[i] == '#':
   s[i+1] = '#'

print(s)