#include using namespace std; int main() { string m = "1000000007"; int a = m.size(); string n; cin >> n; int b = n.size(); cout << abs(a - b) << '\n'; return 0; }