<s>[INST] class Clock:
    def __init__(self, hour = 0, minute = 0, second = 0):
        self.hour = hour
        self.minute = minute
        self.second = second
        self.time = (hour, minute, second)

    def __str__(self):
        return f"{self.hour}:{self.minute}:{self.second}"

    def tick(self):
        self.second += 1
        if self.second == 60:
            self.second = 0
            self.minute += 1
        if self.minute == 60:
            self.second = 0
            self.minute = 0
            self.hour += 1
        if self.hour == 24:
            self.hour = 0
            self.minute = 0
            self.second = 0
        self.time = (self.hour, self.minute, self.second)

    def add_clocks(self, other):
        total_seconds = self.second + other.second
        total_minutes = self.minute + other.minute
        total_hours = self.hour + other.hour

        total_seconds, extra_minutes = divmod(total_seconds, 60)
        total_minutes += extra_minutes
        total_minutes, extra_hours = divmod(total_minutes, 60)
        total_hours += extra_hours
        total_hours %= 24

        new_clock = Clock(total_hours, total_minutes, total_seconds)
        return new_clock

def add_clocks(clock1, clock2):
    total_seconds = clock1.second + clock2.second
    total_minutes = clock1.minute + clock2.minute
    total_hours = clock1.hour + clock2.hour

    total_seconds, extra_minutes = divmod(total_seconds, 60)
    total_minutes += extra_minutes
    total_minutes, extra_hours = divmod(total_minutes, 60)
    total_hours += extra_hours
    total_hours %= 24

    new_clock = Clock(total_hours, total_minutes, total_seconds)
    return new_clock[/INST]