#include #include #include using namespace std; int main() { string N; int diff; cin >> N; diff = 10 - N.size(); printf("%d\n", abs(diff)); }