def conv(problem):
    """Convert problem to array."""
    s = []
    if problem.find(',') == -1:
        for i in problem:
            if i.isdigit():
                s = s + [int(i)]
            else:
                s = s + [0]
        if len(s) != 81:
            return 'Error in input.', True
    else:
        for line in problem.split(','):
            if len(line) == 9:
                for i in line:
                    if i.isdigit():
                        s = s + [int(i)]
                    else:
                        s = s + [0]
            else:
                return 'Error in input: ' + line, True
    if len(s) == 81:
        return s, False
    else:
        return 'Error in input', True
