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