program remix;
const
MAXN = 100000;
var
N,i, contacaratteri : longint;
remixx, testo : array[0..MAXN] of char;
spazio:boolean;
procedure ripulisci(numchar: longint; var R, T: array of char);
var h,k:longint;
begin
k:=0; h:=0; spazio:=false;
while h<numchar do
if ((R[h]<>'P') or (R[h+1]<>'a') or (R[h+2]<>'H')) and ((R[h]<>'T') or (R[h+1]<>'u') or (R[h+2]<>'N') or (R[h+3]<>'Z')) then begin T[K]:=R[h]; k:=k+1; h:= h+1; spazio:=true; end
else
if ((R[h]='P') and (R[h+1]='a') and (R[h+2]='H')) then begin h:=h+3; if spazio=true then T[k]:=' '; spazio:=false;k:=k+1; end
else begin h:=h+4; if spazio=true then T[k]:=' '; spazio:=false; k:=k+1;end;
contacaratteri:=K-1;
end;
begin
(* assign(input, 'input.txt'); reset(input);
assign(output, 'output.txt'); rewrite(output);*)
readln(N);
for i:=0 to N-1 do read(remixx[i]);
readln;
ripulisci(N, remixx, testo);
for i:=0 to contacaratteri-1 do write(testo[i]); writeln;
writeln(testo[contacaratteri-2])
end.
cHJvZ3JhbSByZW1peDsKY29uc3QKICAgIE1BWE4gPSAxMDAwMDA7CnZhcgogICAgTixpLCBjb250YWNhcmF0dGVyaSAgICAgICAgICAgICAgOiBsb25naW50OwogICAgcmVtaXh4LCB0ZXN0byAgICA6IGFycmF5WzAuLk1BWE5dIG9mIGNoYXI7CiAgICBzcGF6aW86Ym9vbGVhbjsKCnByb2NlZHVyZSByaXB1bGlzY2kobnVtY2hhcjogbG9uZ2ludDsgdmFyIFIsIFQ6IGFycmF5IG9mIGNoYXIpOwp2YXIgaCxrOmxvbmdpbnQ7CmJlZ2luCiAgICBrOj0wOyBoOj0wOyBzcGF6aW86PWZhbHNlOwogICAgd2hpbGUgaDxudW1jaGFyIGRvIAogICAgICAgICAgICAgICAgICAgICAgIGlmICgoUltoXTw+J1AnKSBvciAoUltoKzFdPD4nYScpIG9yIChSW2grMl08PidIJykpIGFuZCAoKFJbaF08PidUJykgb3IgKFJbaCsxXTw+J3UnKSBvciAoUltoKzJdPD4nTicpIG9yIChSW2grM108PidaJykpICB0aGVuIGJlZ2luIFRbS106PVJbaF07IGs6PWsrMTsgaDo9IGgrMTsgc3BhemlvOj10cnVlOyBlbmQgCiAgICAgICAgICAgICAgICAgICAgICAgZWxzZQogICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKChSW2hdPSdQJykgYW5kIChSW2grMV09J2EnKSBhbmQgKFJbaCsyXT0nSCcpKSB0aGVuICBiZWdpbiBoOj1oKzM7IGlmIHNwYXppbz10cnVlIHRoZW4gVFtrXTo9JyAnOyBzcGF6aW86PWZhbHNlO2s6PWsrMTsgIGVuZCAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZWxzZSAgYmVnaW4gaDo9aCs0OyBpZiBzcGF6aW89dHJ1ZSB0aGVuIFRba106PScgJzsgc3BhemlvOj1mYWxzZTsgazo9aysxO2VuZDsgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgIGNvbnRhY2FyYXR0ZXJpOj1LLTE7CmVuZDsKCmJlZ2luCiAoKiAgICAgYXNzaWduKGlucHV0LCAgJ2lucHV0LnR4dCcpOyAgcmVzZXQoaW5wdXQpOwogICAgYXNzaWduKG91dHB1dCwgJ291dHB1dC50eHQnKTsgcmV3cml0ZShvdXRwdXQpOyopCiAgICByZWFkbG4oTik7CiAgICBmb3IgaTo9MCB0byBOLTEgZG8gcmVhZChyZW1peHhbaV0pOyAKICAgIHJlYWRsbjsKICAgIHJpcHVsaXNjaShOLCByZW1peHgsIHRlc3RvKTsKICAgIGZvciBpOj0wIHRvIGNvbnRhY2FyYXR0ZXJpLTEgZG8gd3JpdGUodGVzdG9baV0pOyB3cml0ZWxuOwogICAgd3JpdGVsbih0ZXN0b1tjb250YWNhcmF0dGVyaS0yXSkKZW5kLgo=
Mjk5ClBhSFR1TlpUdU5aUGFIUGFIUGFIUGF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