#line 2 "/home/defineprogram/Desktop/Library/template/template.cpp" #include using namespace std; #define ll long long #define rep(i, n) for (int i = 0; i < n; i++) #define REP(i, n) for (int i = 1; i < n; i++) #define rev(i, n) for (int i = n - 1; i >= 0; i--) #define all(v) v.begin(), v.end() #define P pair #define len(s) (ll) s.size() template inline bool chmin(T &a, U b) { if (a > b) { a = b; return true; } return false; } template inline bool chmax(T &a, U b) { if (a < b) { a = b; return true; } return false; } constexpr ll inf = 3e18; #line 2 "main.cpp" int main() { cin.tie(0); ios::sync_with_stdio(false); string S;cin>>S; cout<<(len(S)+1)/2<<"\n"; }