#include <stdio.h>
#include <stdint.h>
int custom_strlen(const char *str) {
// Your logic here
uint8_t lcount=0;
while(lcount<100){
if(*str=='\0'){
return lcount;
}
lcount++;
str++;
}
return 0;
}
int main() {
char str[101];
fgets(str, sizeof(str), stdin);
// Remove newline if present
int i = 0;
while (str[i] != '\0') {
if (str[i] == '\n') {
str[i] = '\0';
break;
}
i++;
}
printf("%d", custom_strlen(str));
return 0;
}