#include <iostream>
int main()
{
char ch;
for(int i = 0; i < 8 && std::cin >> ch && std::cout << ch && ((i == 3 || i == 5) && std::cout << std::endl || std::cout << std::flush); ++i){}
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKaW50IG1haW4oKQp7CgljaGFyIGNoOwoJZm9yKGludCBpID0gMDsgaSA8IDggJiYgc3RkOjpjaW4gPj4gY2ggJiYgc3RkOjpjb3V0IDw8IGNoICYmICgoaSA9PSAzIHx8IGkgPT0gNSkgJiYgc3RkOjpjb3V0IDw8IHN0ZDo6ZW5kbCB8fCBzdGQ6OmNvdXQgPDwgc3RkOjpmbHVzaCk7ICsraSl7fQp9Cg==