while 1:print sum(sum(int(n)>>x&1 for x in range(8))for n in raw_input().split("."))

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page