#include<iostream>
#include<cstring>
#include<cstdio>
#include<map>
#include<set>
#include<stack>
#include<vector>
#include<algorithm>
#include<cmath>
#include<fstream>
#include<iomanip>
#include<queue>
#include<list>
#include<cctype>

#define ___ "-------------------------------\n"

using namespace std;
typedef long long ll;
typedef unsigned long long ull; 
const ll maxn = 100000 + 5;
int main(){
//	ios::sync_with_stdio(false);
//	ifstream cin("data.txt");
//	freopen("data.txt", "r", stdin);
    string s;
    getline(cin, s);
    s += string(8 - ((s.length() % 8) ? (s.length() % 8) : 8), '0');
    for(int i = 1; i <= s.length();i++){
        cout << s[i - 1];
        if(!(i % 8))cout << "\n";
    }
	return 0;
}