function main() n = parse(BigInt, readline()) # read input.txt # n = parse(BigInt, read("input.txt", String)) println(count_ones(n)) end main()