![](https://i-blog.csdnimg.cn/blog_migrate/72fcd595f2dc0c13e7bb3e543f4ed7b3.png)
![](https://i-blog.csdnimg.cn/blog_migrate/b4712d85d240b23a856b8fc448e17f13.png)
from datetime import datetime,timedelta
start=datetime(year=1970,month=1,day=1)
delt=timedelta(milliseconds=1)
now=int(input())
now=start+now*delt
print('%02d:%02d:%02d'%(now.hour,now.minute,now.second))
from datetime import datetime,timedelta
start=datetime(year=1970,month=1,day=1)
delt=timedelta(milliseconds=1)
now=int(input())
now=start+now*delt
print('%02d:%02d:%02d'%(now.hour,now.minute,now.second))