import time


def sectoMin(secs) -> str:
    """Convert seconds to 0:00 format"""
    secs = int(secs)
    if secs >= 3600:
        return time.strftime("%H:%M:%S", time.gmtime(secs))
    else:
        return time.strftime("%M:%S", time.gmtime(secs))