def part1(lines):
    gamma = ''
    epsilon = ''
    num_bits = len(lines[0])
    for i in range(num_bits):
        most_common = Counter(map((lambda x: x[i]), lines)).most_common(1)[0][0]
        gamma += most_common
        epsilon += ('0' if (most_common == '1') else '1')
    return (int(gamma, base=2) * int(epsilon, base=2))
def part1(lines):
    gamma = 
    epsilon = 
    num_bits = len(lines[0])
    for i in range(num_bits):
        most_common = Counter(map((lambda x: x[i]), lines)).most_common(1)[0][0]
        gamma += most_common
        epsilon += ('0' if (most_common == '1') else '1')
    return (int(gamma, base=2) * int(epsilon, base=2))