hour = int(input("时:"))
min = int(input("分:"))
sec = int(input("秒:"))
if sec == 59:
sec = 0
min += 1
if min == 60:
min = 0
hour += 1
if hour == 24:
hour =0
else:
sec += 1
print("下一秒为:",hour,"点",min,"分",sec,"秒")
hour = int(input("时:"))
min = int(input("分:"))
sec = int(input("秒:"))
if sec == 59:
sec = 0
min += 1
if min == 60:
min = 0
hour += 1
if hour == 24:
hour =0
else:
sec += 1
print("下一秒为:",hour,"点",min,"分",sec,"秒")