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