#include <bits/stdc++.h>
using namespace std;

int main()
{
    string str;  cin>>str;
    int s , y, lng;
    lng = str.length();
    s = lng / 8; y = lng % 8;  //8除字符个数 
    if(s!=0 && y==0)   //字符串长度是8的整数倍
        for(int i = 0; i < s; i++)
        {
            for(int j = i*8; j <= 8*i+7; j++)
                cout << str[j];
            cout<<endl;    //每输出8个换行
        }
    if(y != 0)    //字符串长度不是8的整数倍
    {
        if(!s)     //长度小于8
        {  //s==0
            for(int i = 0; i < y; i++)    cout<<str[i];
            for(int j = y; j < 8; j++)    cout<<0;   
        }
        else{    //字符串长度是8,16,24......
            for(int i = 0; i < s; i++)
            {
                for(int j = i*8; j <= i*8+7; j++)    cout << str[j];
                cout<<endl;
            }
            for(int i = s*8; i < lng; i++)    cout<<str[i];
            for(int i = lng; i < (s+1)*8; i++)    cout<<0;
        }            
    }   
    return 0;
}