#include <stdio.h>
int custom_strlen(const char *str) {
int str_len_cnt = 0;
while (*str != '\0')
{
str++;
str_len_cnt++;
}
return str_len_cnt;
}
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;
}