def seconds_to_datetime(second: int) -> str:
    """Convert seconds to datetime string."""
    mins, secs = divmod(int(second), 60)
    hours, mins = divmod(mins, 60)
    return f'{hours:02d}:{mins:02d}:{secs:02d}'