Each moment can be represented by six numbers, for example, 10:20:30 can be represented as 10:20:30. There are many moments in 24 hours of a day composed of six different numbers, so how many seconds does it take from the last such moment of a day to the first such moment of the next day.
每个时刻都可以用六个数字来表示，例如10点20分30秒可以表示为10：20：30．一天24小时当中有很多个时刻都是六个互不相同的数字组成，那么某天中最后一个这样的时刻到第二天第一个这样的时刻需要多少秒．
<gadget id="calculator">5_025 + 12</gadget>
<output>5_037</output>

<result>5_037</result>