I found this code on the internet and changed it a little bit, but for some reason the result is 1 second wrong;
Ex: 140153 should return 38:55:53 but is returning 38:55:52
N = int(input())
min = 60
hour = 60 * 60
day = 60 * 60 * 24
DAY = N // day
HOUR = (N - (DAY)) // hour
MINUT = (N - (DAY + (HOUR * hour))) // min
SECONDS = N - (DAY + (HOUR * hour) + (MINUT * min))
print('{}:{}:{}'.format(HOUR, MINUT, SECONDS))