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