def read_row(width):
    """Reads one row of integers interpreted as booleans."""
    row = [int(field) != 0 for field in input().split()]
    if len(row) != width:
        raise ValueError('wrong row width')
    return row