def find_port(ports, target):
"""
Returns the first integer in ports that equals the target or is greater.
If there is no solution, returns -1.
Args:
ports (list): A list of port numbers.
target (int): The target port number.
Returns:
int: The first port number greater than or equal to the target, or -1 if not found.
"""
# Iterate over the ports and return the first one that's greater than or equal to the target
for port in ports:
if port >= target:
return port
# If no port is greater than or equal to the target, return -1
return -1
# Example usage:
ports = [80, 22, 443, 21]
target = 25
print(find_port(ports, target)) # Output: 80
ZGVmIGZpbmRfcG9ydChwb3J0cywgdGFyZ2V0KToKICAgICIiIgogICAgUmV0dXJucyB0aGUgZmlyc3QgaW50ZWdlciBpbiBwb3J0cyB0aGF0IGVxdWFscyB0aGUgdGFyZ2V0IG9yIGlzIGdyZWF0ZXIuCiAgICBJZiB0aGVyZSBpcyBubyBzb2x1dGlvbiwgcmV0dXJucyAtMS4KCiAgICBBcmdzOgogICAgICAgIHBvcnRzIChsaXN0KTogQSBsaXN0IG9mIHBvcnQgbnVtYmVycy4KICAgICAgICB0YXJnZXQgKGludCk6IFRoZSB0YXJnZXQgcG9ydCBudW1iZXIuCgogICAgUmV0dXJuczoKICAgICAgICBpbnQ6IFRoZSBmaXJzdCBwb3J0IG51bWJlciBncmVhdGVyIHRoYW4gb3IgZXF1YWwgdG8gdGhlIHRhcmdldCwgb3IgLTEgaWYgbm90IGZvdW5kLgogICAgIiIiCiAgICAjIEl0ZXJhdGUgb3ZlciB0aGUgcG9ydHMgYW5kIHJldHVybiB0aGUgZmlyc3Qgb25lIHRoYXQncyBncmVhdGVyIHRoYW4gb3IgZXF1YWwgdG8gdGhlIHRhcmdldAogICAgZm9yIHBvcnQgaW4gcG9ydHM6CiAgICAgICAgaWYgcG9ydCA+PSB0YXJnZXQ6CiAgICAgICAgICAgIHJldHVybiBwb3J0CiAgICAKICAgICMgSWYgbm8gcG9ydCBpcyBncmVhdGVyIHRoYW4gb3IgZXF1YWwgdG8gdGhlIHRhcmdldCwgcmV0dXJuIC0xCiAgICByZXR1cm4gLTEKCiMgRXhhbXBsZSB1c2FnZToKcG9ydHMgPSBbODAsIDIyLCA0NDMsIDIxXQp0YXJnZXQgPSAyNQpwcmludChmaW5kX3BvcnQocG9ydHMsIHRhcmdldCkpICAjIE91dHB1dDogODA=