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