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