#include <iostream>
using namespace std;
int main() {
char ch = 'x';
int i = 1;
while((ch = getchar()) != EOF)
{
if(i == 5)
{
cout << ch << " ";
i -= 5;
}
++i;
}
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CgljaGFyIGNoID0gJ3gnOwoJaW50IGkgPSAxOwoJd2hpbGUoKGNoID0gZ2V0Y2hhcigpKSAhPSBFT0YpCgl7CgkJaWYoaSA9PSA1KQoJCXsKCQkJY291dCA8PCBjaCA8PCAiICI7CgkJCWkgLT0gNTsKCQl9CgkJKytpOwoJfQp9