#include using namespace std; #define ll long long const int maxn = 2e5+5; int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); string s; cin>>s; cout<<(s.length()+1)/2<<"\n"; return 0; }