def print_result(stderr, stdout, count, sum):
    if stderr:
        return eys.stderr.write((stderr.rstrip() + '\n'))
    if stdout:
        if (count and sum):
            return sys.stdout.write((stdout + '\n'))
        else:
            with tempfile.TemporaryFile() as f:
                f.write(stdout.encode('utf-8'))
                f.seek(0)
                max_lines = 100
                lines = f.readlines(max_lines)
                while lines:
                    for line in lines:
                        if (line == b'\n'):
                            continue
                        sys.stdout.write(line.decode('utf-8'))
                    lines = f.readlines(max_lines)
def print_result(stderr, stdout, count, sum):
    if stderr:
        return eys.stderr.write((stderr.rstrip() + '\n'))
    if stdout:
        if (count and sum):
            return sys.stdout.write((stdout + '\n'))
        else:
            with tempfile.TemporaryFile() as f:
                f.write(stdout.encode('utf-8'))
                f.seek(0)
                max_lines = 100
                lines = f.readlines(max_lines)
                while lines:
                    for line in lines:
                        if (line == b'\n'):
                            continue
                        sys.stdout.write(line.decode('utf-8'))
                    lines = f.readlines(max_lines)