水篇题解。

AC Code:

#include <bits/stdc++.h>
using namespace std;

string s;

int main() {
    freopen("log.in", "r", stdin);
    freopen("log.out", "w", stdout);
    cin >> s;
    s.erase(s.end() - 1);
    cout << s.size();
    return 0;
}