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