number = int(input("Enter a number of seconds: ")) a = number hours = int(a / 3600) a = a - (hours * 3600) minutes = int(a / 60) a = a - (minutes * 60) print(str(number), "seconds is:", str(hours) + 'h', str(minutes) + 'm', str(a) + 's')