#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<math.h>
int main()
{
long long n,g,hh,mm,ss;
scanf("%lld",&n);
if(n>86400000)
{
g=n%86400000;
hh=g/3600000;
mm=g%3600000/60000;
ss=g%3600000%60000/1000;
printf("%02lld:%02lld:%02lld",hh,mm,ss);
}
if(n<86400000)
{
hh=n/3600000;
mm=n%3600000/60000;
ss=n%3600000%6000/1000;
printf("%02lld:%02lld:%02lld",hh,mm,ss);
}
return 0;
}
11-02
1098
04-02
374