#include <iostream>
#include <stdio.h>
#include <cmath>
using namespace std;
int main() {
double n;
int k;
int res = 0;
scanf("%lf", &n);
if (n > -1 && n < 1) {
cout << 0 << endl;
return 0;
}
k = floor(abs(n));
while (k != 0) {
res++;
k = k/10;
}
cout << res << endl;
return 0;
}