def get_value(data, default):
    for i in range(len(data[0])):
        cntr = Counter(map((lambda x: x[i]), data))
        most_common = (cntr.most_common(1)[0][0] if (default == '1') else cntr.most_common()[(- 1)][0][0])
        if ((cntr.most_common(1)[0][1] == cntr.most_common()[(- 1)][1]) and (len(cntr.most_common()) > 1)):
            most_common = default
        data = list(filter((lambda x: (x[i] == most_common)), data))
        if (len(data) < 2):
            break
    print(data[0])
    return int(data[0], base=2)
def get_value(data, default):
    for i in range(len(data[0])):
        cntr = Counter(map((lambda x: x[i]), data))
        most_common = (cntr.most_common(1)[0][0] if (default == '1') else cntr.most_common()[(- 1)][0][0])
        if ((cntr.most_common(1)[0][1] == cntr.most_common()[(- 1)][1]) and (len(cntr.most_common()) > 1)):
            most_common = default
        data = list(filter((lambda x: (x[i] == most_common)), data))
        if (len(data) < 2):
            break
    print(data[0])
    return int(data[0], base=2)