#include <iostream>
#include <cstring>
int main() {
std::string str;
std::cin >> str;
for(int i = 4; i < str.length(); i += 5)
{
std::cout << str[i];
}
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y3N0cmluZz4KCmludCBtYWluKCkgewoJc3RkOjpzdHJpbmcgc3RyOwoJc3RkOjpjaW4gPj4gc3RyOwoJZm9yKGludCBpID0gNDsgaSA8IHN0ci5sZW5ndGgoKTsgaSArPSA1KQoJewoJCXN0ZDo6Y291dCA8PCBzdHJbaV07Cgl9Cn0=