text: def _time(hour, minute):
      total = 60 * hour + minute
      return (total // 60) % 24, total % 60
  
  
  class Clock(object):
      def __init__(self, hour, minute):
          self.h, self.m = _time(hour, minute)
  
      def __repr__(self):
          return "{:02d}:{:02d}".format(self.h, self.m)
  
      def __eq__(self, other):
          return self.__class__ == other.__class__ and self.h == other.h and self.m == other.m
  
      def __add__(self, minutes):
          return Clock(self.h, self.m+minutes)
  
      def __sub__(self, minutes):
          return Clock(self.h, self.m-minutes)
  