#!/usr/bin/python ''' Reads from stdin, writes to stdout. - BEGIN - | 7 6 5 4 | 3 2 1 0 | 7| - - | - |0 - END ''' import sys def count_holes(s): holes = 0 for c in s: x = ord(c) for i in range(8): if x & (1<