def friendly_seconds(n):
    mins = n/60%60
    hours = n/(60*60)
    seconds = n%60
    return "%02d:%02d:%02d" % (hours, mins, seconds)