#include <iostream>
using namespace std;
void change(char* b);
int main()
{ char a[7]="PARTH";
change(a);
for (int i=4; i>=0; i--)
cout<<a[i]<<endl;
return 0;
}
void change(char* b)
{ for (int i=0; i<4; i++)
{ *b=*b+1;
b++;
}
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKdm9pZCBjaGFuZ2UoY2hhciogYik7CmludCBtYWluKCkKIHsgY2hhciBhWzddPSJQQVJUSCI7CiAgICBjaGFuZ2UoYSk7CiAgICBmb3IgKGludCBpPTQ7IGk+PTA7IGktLSkKCSBjb3V0PDxhW2ldPDxlbmRsOwoJIHJldHVybiAwOwogfQoKdm9pZCBjaGFuZ2UoY2hhciogYikKeyBmb3IgKGludCBpPTA7IGk8NDsgaSsrKQogICAgewkqYj0qYisxOwoJICBiKys7CiAgICAgfQp9Cg==