import java.util.Scanner;
import java.util.concurrent.*;

public class Main{
	public static void main(String[] args){
		long s,sec,min,hour;
		Scanner in = new Scanner(System.in);
		
		s = in.nextLong();
		
		hour = TimeUnit.SECONDS.toHours(s);
		min = TimeUnit.SECONDS.toMinutes(s) - hour*60;
		sec = TimeUnit.SECONDS.toSeconds(s) - hour*3600 - min*60;
		
		System.out.println(hour+":"+min+":"+sec);
	}
} import java.util.Scanner; Scanner java.util import java.util.concurrent.*; concurrent.* java.util public class Main{
	public static void main(String[] args){
		long s,sec,min,hour;
		Scanner in = new Scanner(System.in);
		
		s = in.nextLong();
		
		hour = TimeUnit.SECONDS.toHours(s);
		min = TimeUnit.SECONDS.toMinutes(s) - hour*60;
		sec = TimeUnit.SECONDS.toSeconds(s) - hour*3600 - min*60;
		
		System.out.println(hour+":"+min+":"+sec);
	}
} Main public static void main(String[] args){
		long s,sec,min,hour;
		Scanner in = new Scanner(System.in);
		
		s = in.nextLong();
		
		hour = TimeUnit.SECONDS.toHours(s);
		min = TimeUnit.SECONDS.toMinutes(s) - hour*60;
		sec = TimeUnit.SECONDS.toSeconds(s) - hour*3600 - min*60;
		
		System.out.println(hour+":"+min+":"+sec);
	} main {
		long s,sec,min,hour;
		Scanner in = new Scanner(System.in);
		
		s = in.nextLong();
		
		hour = TimeUnit.SECONDS.toHours(s);
		min = TimeUnit.SECONDS.toMinutes(s) - hour*60;
		sec = TimeUnit.SECONDS.toSeconds(s) - hour*3600 - min*60;
		
		System.out.println(hour+":"+min+":"+sec);
	} long s s sec sec min min hour; hour Scanner in = new Scanner(System.in); in new Scanner(System.in) s = in.nextLong() s in.nextLong() in.nextLong in hour = TimeUnit.SECONDS.toHours(s) hour TimeUnit.SECONDS.toHours(s) TimeUnit.SECONDS.toHours TimeUnit.SECONDS TimeUnit TimeUnit.SECONDS s min = TimeUnit.SECONDS.toMinutes(s) - hour*60 min TimeUnit.SECONDS.toMinutes(s) - hour*60 TimeUnit.SECONDS.toMinutes(s) TimeUnit.SECONDS.toMinutes TimeUnit.SECONDS TimeUnit TimeUnit.SECONDS s hour*60 hour 60 sec = TimeUnit.SECONDS.toSeconds(s) - hour*3600 - min*60 sec TimeUnit.SECONDS.toSeconds(s) - hour*3600 - min*60 TimeUnit.SECONDS.toSeconds(s) - hour*3600 - min*60 TimeUnit.SECONDS.toSeconds(s) TimeUnit.SECONDS.toSeconds TimeUnit.SECONDS TimeUnit TimeUnit.SECONDS s hour*3600 hour 3600 min*60 min 60 System.out.println(hour+":"+min+":"+sec) System.out.println System.out System System.out hour+":"+min+":"+sec ":" min hour+":"+min+":"+sec hour ":" min ":" sec String[] args args public class Main{
	public static void main(String[] args){
		long s,sec,min,hour;
		Scanner in = new Scanner(System.in);
		
		s = in.nextLong();
		
		hour = TimeUnit.SECONDS.toHours(s);
		min = TimeUnit.SECONDS.toMinutes(s) - hour*60;
		sec = TimeUnit.SECONDS.toSeconds(s) - hour*3600 - min*60;
		
		System.out.println(hour+":"+min+":"+sec);
	}
} public class Main{
	public static void main(String[] args){
		long s,sec,min,hour;
		Scanner in = new Scanner(System.in);
		
		s = in.nextLong();
		
		hour = TimeUnit.SECONDS.toHours(s);
		min = TimeUnit.SECONDS.toMinutes(s) - hour*60;
		sec = TimeUnit.SECONDS.toSeconds(s) - hour*3600 - min*60;
		
		System.out.println(hour+":"+min+":"+sec);
	}
} Main
import java.util.Scanner;
import java.util.concurrent.*;

public class Main{
	public static void main(String[] args){
		long s,sec,min,hour;
		Scanner in = new Scanner(System.in);
		
		s = in.nextLong();
		
		hour = TimeUnit.SECONDS.toHours(s);
		min = TimeUnit.SECONDS.toMinutes(s) - hour*60;
		sec = TimeUnit.SECONDS.toSeconds(s) - hour*3600 - min*60;
		
		System.out.println(hour+":"+min+":"+sec);
	}
}