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