def input_columns_names(picture_size):
    """
    Generate the names of the input columns representing the pixels of the
    pictures, for a given picture size.
    """
    input_columns = []
    for color in 'rgb':
        input_columns.extend(['%s%i' % (color, i)
                              for i in range(picture_size ** 2)])

    return input_columns