import sys

def main():
    N = int(input())
    S = input()
    for i in range(N-1):
        if S[i:i+2]=='#.':
            if i==0 or ((i-1)>=0 and S[i-1]=='.'):
                S = S[:i] + '.' + S[i+1:]
            else:
                S = S[:i+1] + '#' + S[i+2:]
    print(S)

if __name__ == '__main__':
    main()
