#include #include int main(void){ int i = 0; char n[20]; scanf("%s", n); while(n[i + 1] != '7'){ i++; } printf("%d\n", abs(i - 8)); return 0; }