#include using namespace std; int main(){ int digit = 8; string s; cin >> s; int tmp = s.length() - 2 - digit; cout << abs(tmp) << endl; return 0; }