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