#include <stdio.h>
int custom_strlen(char *str) {
// Your logic here
int c=0;
while(*(str)!='\0'){
c+=1;
str+=1;
}
return c;
}
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;
}