#include #include #include int main(void){ char str[12]; scanf("%s",str); printf("%d\n",abs(strlen(str) - strlen("1000000007"))); }