#include using namespace std; int main() { string n; cin >> n; int m = n.length() - 2; int ans = abs(m - 8); cout << ans << endl; }