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