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

int main() {
  string n;
  cin >> n;
  cout << (n.size() - 10) << endl;
  return 0;
}