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