#include <stdio.h>
int custom_strlen(const char *str) {
// Your logic here
int i = 0;
if(str[i] == '\0') return 0; //for empty string
else{
while(str[i] != '\0'){ //travers till end of string
i++; //increamet the pointer
}
}
return i; //return the end value of pointer
}
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;
}