#include<bits/stdc++.h>
#define ff first
#define ss second
#define pb push_back
#define mp make_pair
#define ll long long
#define all(a) a.begin(),a.end()
#define endl '\n'
#define y1 y123123
#define int ll

using namespace std;

const int N = 3e3 + 3;
const int inf = 1e9 + 3;
const int md = 1e9 + 7;

string s;
string last;
int ans;

main(){
    ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);

    cin >> s;
    last = s[0];
    ans++;
    for(int i = 1; i < s.size(); ++i){
        string tec = "";
        tec += s[i];
        if(tec == last){
            if(i + 1 == s.size()){
                break;
            }
            last = "";
            last += s[i];
            last += s[i + 1];
            i++;
            ans++;
        }else{
            last = "";
            last += s[i];
            ans++;
        }
        cout << last << endl;
    }
    cout << ans;
}
