time=int(input())
time=int(time/1000) #秒
a=time/60/60/24 #天数计算
time=time-int(a)*24*60*60 #一天中的时间
a=int(time/3600) #整时
print('{0:02}'.format(a),end=':')
time=time-a*3600
b=int(time/60) #整分
print('{0:02}'.format(b),end=':')
c=time-b*60
print('{0:02}'.format(c))
01-16
404
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
05-13
6160
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
06-01
1134
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)