#include <bits/stdc++.h> using namespace std; int main(){ string S;cin>>S; cout<<(S.size()+1)/2<<endl; }