#include #include #include using namespace std; int main(){ string n; cin >> n; int ans = (n.length()+1)/2; cout << ans << endl; return 0; }