#include #include using namespace std; using namespace atcoder; using ll = long long; using ld = long double; string N; int main() { cin >> N; cout << (N.size() + 1) / 2 << endl; return 0; }