#include <bits/stdc++.h>
using namespace std;
int main()
{
string str;
while ( cin >> str )
{
for ( int i = 0; i < str.size(); i+=8 )
{
cout.width(8);
cout.fill('0');
cout << left << str.substr(i,8) << endl;
}
}
return 0;
}