#include using namespace std; int main(){ string s; cin >> s; int a=s.size(); cout << abs(a-10) << endl; }