#include <iostream> using namespace std; int main() { string word; int index; while(cin >> word) { index = 0; while(index < word.size()) { string output = word.substr(index, 8); cout << output; if (output.size() < 8) { cout << string(8 - output.size(), '0'); } cout << endl; index += 8; } } return 0; }