time = int(input("enter a time in seconds ")) m = 0 h = 0 while time >= 60: time = time - 60 m = m + 1 while m >= 60: m = m - 60 h = h +1 print(h,"h") print(m,"min") print(time,"seconds") #longer times take longer to calculate.