#include using namespace std; int main(){ string s; cin >> s; int zero = s.size() - 2; int ans = abs(8 - zero); cout << ans << "\n"; return 0; }