Given a list of log lines as strings, return the IP address that appears most often. Each valid line starts with an IPv4 address followed by a space and the rest of the message. Ignore malformed lines that do not start with a valid IPv4 address. If multiple IPs have the same highest count, return the lexicographically smallest one. If no valid IP exists, return an empty string.
1 <= len(logs) <= 10^40 <= len(logs[i]) <= 200.0 to 255