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