program remix;
const
MAXN = 100000;
var
N,i : 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; end
else
if ((R[h]='P') and (R[h+1]='a') and (R[h+2]='H')) then h:=h+3
else h:=h+4;
if spazio=true then testo[k]:=' ';k:=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 N-1 do write(testo[i]); writeln;
end.
cHJvZ3JhbSByZW1peDsKY29uc3QKICAgIE1BWE4gPSAxMDAwMDA7CnZhcgogICAgTixpICAgICAgICAgICAgICA6IGxvbmdpbnQ7CiAgICByZW1peHgsIHRlc3RvICAgIDogYXJyYXlbMC4uTUFYTl0gb2YgY2hhcjsKICAgIHNwYXppbzpib29sZWFuOwoKcHJvY2VkdXJlIHJpcHVsaXNjaShudW1jaGFyOiBsb25naW50OyB2YXIgUiwgVDogYXJyYXkgb2YgY2hhcik7CnZhciBoLGs6bG9uZ2ludDsKYmVnaW4KICAgIGs6PTA7IGg6PTA7IHNwYXppbzo9ZmFsc2U7CiAgICB3aGlsZSBoPG51bWNoYXIgZG8gCiAgICAgICAgICAgICAgICAgICAgICAgaWYgKChSW2hdPD4nUCcpIG9yIChSW2grMV08PidhJykgb3IgKFJbaCsyXTw+J0gnKSkgYW5kICgoUltoXTw+J1QnKSBvciAoUltoKzFdPD4ndScpIG9yIChSW2grMl08PidOJykgb3IgKFJbaCszXTw+J1onKSkgIHRoZW4gYmVnaW4gVFtLXTo9UltoXTsgazo9aysxOyBoOj0gaCsxOyAgZW5kIAogICAgICAgICAgICAgICAgICAgICAgIGVsc2UKICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmICgoUltoXT0nUCcpIGFuZCAoUltoKzFdPSdhJykgYW5kIChSW2grMl09J0gnKSkgdGhlbiAgaDo9aCszIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBlbHNlICBoOj1oKzQ7IAogICAgaWYgc3BhemlvPXRydWUgdGhlbiB0ZXN0b1trXTo9JyAnO2s6PWsrMTsgICAgICAgICAgICAgICAgICAgICAgICAgICAKCmVuZDsKCgoKCgpiZWdpbgogKCogICAgIGFzc2lnbihpbnB1dCwgICdpbnB1dC50eHQnKTsgIHJlc2V0KGlucHV0KTsKICAgIGFzc2lnbihvdXRwdXQsICdvdXRwdXQudHh0Jyk7IHJld3JpdGUob3V0cHV0KTsqKQogICAgcmVhZGxuKE4pOwogICAgZm9yIGk6PTAgdG8gTi0xIGRvIHJlYWQocmVtaXh4W2ldKTsgCiAgICByZWFkbG47CiAgICByaXB1bGlzY2koTiwgcmVtaXh4LCB0ZXN0byk7CiAgICBmb3IgaTo9MCB0byBOLTEgZG8gd3JpdGUodGVzdG9baV0pOyB3cml0ZWxuOwogICAgCmVuZC4KCg==