function main(input) {
  const args = input.split(" ");
  const sss = args[0];
  let count = 0;
  sss.split("").forEach(
    () => count++
  );
  return count;
}

main(require("fs").readFileSync("/dev/stdin", "utf8"));