#include using namespace std; #define int long long signed main(){ string S; cin>>S; int N = S.size(); cout<<(N+1)/2<