#include <iostream>
#include <string>
int main() {
std::string s("mamku;v;jopu;ipal");
for (int i = 0; i < s.size(); ++i)
std::cout << ((';' == s[i]) ? '\n' : s.at(i));
std::cout << std::endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nPgoKaW50IG1haW4oKSB7CglzdGQ6OnN0cmluZyBzKCJtYW1rdTt2O2pvcHU7aXBhbCIpOwoJZm9yIChpbnQgaSA9IDA7IGkgPCBzLnNpemUoKTsgKytpKQoJCXN0ZDo6Y291dCA8PCAoKCc7JyA9PSBzW2ldKSA/ICdcbicgOiBzLmF0KGkpKTsKCXN0ZDo6Y291dCA8PCBzdGQ6OmVuZGw7CglyZXR1cm4gMDsKfQ==