/* Collection of code snippets by Arne Vajhøj */
/* (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main()
{
    char line[256];
    fgets(line, 256, stdin);
    line[strcspn(line, "\n")] = '\0';
    printf("%d\n", strlen(line));
    return 0;
}
