import java.util.Scanner;

public class Main{
	public static void main(String[]args){
		Scanner scan = new Scanner(System.in);
		String S = scan.next();
		int time_sec = new Integer(S);
		
		int time_min = time_sec/60;
		int s =time_sec%60;
		
		int h =time_min/60;
		int m =time_min%60;
		
		System.out.println(h + ":" + m + ":" + s);
	}
} import java.util.Scanner; Scanner java.util public class Main{
	public static void main(String[]args){
		Scanner scan = new Scanner(System.in);
		String S = scan.next();
		int time_sec = new Integer(S);
		
		int time_min = time_sec/60;
		int s =time_sec%60;
		
		int h =time_min/60;
		int m =time_min%60;
		
		System.out.println(h + ":" + m + ":" + s);
	}
} Main public static void main(String[]args){
		Scanner scan = new Scanner(System.in);
		String S = scan.next();
		int time_sec = new Integer(S);
		
		int time_min = time_sec/60;
		int s =time_sec%60;
		
		int h =time_min/60;
		int m =time_min%60;
		
		System.out.println(h + ":" + m + ":" + s);
	} main {
		Scanner scan = new Scanner(System.in);
		String S = scan.next();
		int time_sec = new Integer(S);
		
		int time_min = time_sec/60;
		int s =time_sec%60;
		
		int h =time_min/60;
		int m =time_min%60;
		
		System.out.println(h + ":" + m + ":" + s);
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String S = scan.next(); S scan.next() scan.next scan int time_sec = new Integer(S); time_sec new Integer(S) int time_min = time_sec/60; time_min time_sec/60 time_sec 60 int s =time_sec%60; s time_sec%60 time_sec 60 int h =time_min/60; h time_min/60 time_min 60 int m =time_min%60; m time_min%60 time_min 60 System.out.println(h + ":" + m + ":" + s) System.out.println System.out System System.out h + ":" + m + ":" + s ":" m h + ":" + m + ":" + s h ":" m ":" s String[]args args public class Main{
	public static void main(String[]args){
		Scanner scan = new Scanner(System.in);
		String S = scan.next();
		int time_sec = new Integer(S);
		
		int time_min = time_sec/60;
		int s =time_sec%60;
		
		int h =time_min/60;
		int m =time_min%60;
		
		System.out.println(h + ":" + m + ":" + s);
	}
} public class Main{
	public static void main(String[]args){
		Scanner scan = new Scanner(System.in);
		String S = scan.next();
		int time_sec = new Integer(S);
		
		int time_min = time_sec/60;
		int s =time_sec%60;
		
		int h =time_min/60;
		int m =time_min%60;
		
		System.out.println(h + ":" + m + ":" + s);
	}
} Main
import java.util.Scanner;

public class Main{
	public static void main(String[]args){
		Scanner scan = new Scanner(System.in);
		String S = scan.next();
		int time_sec = new Integer(S);
		
		int time_min = time_sec/60;
		int s =time_sec%60;
		
		int h =time_min/60;
		int m =time_min%60;
		
		System.out.println(h + ":" + m + ":" + s);
	}
}