//#include //#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #define FOR(i, a, b) for( int i=(a);i<=(b);i++) #define RFOR(i, a, b) for( int i=(a);i>=(b);i--) #define LFOR(i, a, b) for( long long int i=(a);i<=(b);i++) #define LRFOR(i, a, b) for(long long int i=(a);i>=(b);i--) #define MOD 1000000007 #define INF 1000000000 //2000000000 #define LLINF 1000000000000000000 //9000000000000000000 #define PI 3.14159265358979 #define MAXI 7500000 using namespace std; typedef long long int ll; typedef pair< long long int, long long int> P; typedef string::const_iterator State; int dy[5] = { 0,0,1,-1,0 }; int dx[5] = { 1,-1,0,0 ,0 }; int main(void) { string s; int p = 8; int q; cin >> s; q = s.size(); cout << abs(p - q) << endl; return 0; }