import java.util.Scanner;

public class Main{
	public static void main(String[] args){

		GetNum test = new GetNum();
		test.ChangeSec();
			
	}
}

class GetNum{
	public void ChangeSec(){
		
			String sec = new Scanner(System.in).nextLine()	;
			int num = Integer.parseInt(sec);
			int test = num / 60;

			int h = test / 60;
			int m = test % 60;
			int s = num % 60;

			System.out.println(h + ":" + m + ":" + s); 

		}
} import java.util.Scanner; Scanner java.util public class Main{
	public static void main(String[] args){

		GetNum test = new GetNum();
		test.ChangeSec();
			
	}
} Main public static void main(String[] args){

		GetNum test = new GetNum();
		test.ChangeSec();
			
	} main {

		GetNum test = new GetNum();
		test.ChangeSec();
			
	} GetNum test = new GetNum(); test new GetNum() test.ChangeSec() test.ChangeSec test String[] args args class GetNum{
	public void ChangeSec(){
		
			String sec = new Scanner(System.in).nextLine()	;
			int num = Integer.parseInt(sec);
			int test = num / 60;

			int h = test / 60;
			int m = test % 60;
			int s = num % 60;

			System.out.println(h + ":" + m + ":" + s); 

		}
} GetNum public void ChangeSec(){
		
			String sec = new Scanner(System.in).nextLine()	;
			int num = Integer.parseInt(sec);
			int test = num / 60;

			int h = test / 60;
			int m = test % 60;
			int s = num % 60;

			System.out.println(h + ":" + m + ":" + s); 

		} ChangeSec {
		
			String sec = new Scanner(System.in).nextLine()	;
			int num = Integer.parseInt(sec);
			int test = num / 60;

			int h = test / 60;
			int m = test % 60;
			int s = num % 60;

			System.out.println(h + ":" + m + ":" + s); 

		} String sec = new Scanner(System.in).nextLine()	; sec new Scanner(System.in).nextLine() new Scanner(System.in).nextLine new Scanner(System.in) int num = Integer.parseInt(sec); num Integer.parseInt(sec) Integer.parseInt Integer sec int test = num / 60; test num / 60 num 60 int h = test / 60; h test / 60 test 60 int m = test % 60; m test % 60 test 60 int s = num % 60; s num % 60 num 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 public class Main{
	public static void main(String[] args){

		GetNum test = new GetNum();
		test.ChangeSec();
			
	}
} public class Main{
	public static void main(String[] args){

		GetNum test = new GetNum();
		test.ChangeSec();
			
	}
} Main
import java.util.Scanner;

public class Main{
	public static void main(String[] args){

		GetNum test = new GetNum();
		test.ChangeSec();
			
	}
}

class GetNum{
	public void ChangeSec(){
		
			String sec = new Scanner(System.in).nextLine()	;
			int num = Integer.parseInt(sec);
			int test = num / 60;

			int h = test / 60;
			int m = test % 60;
			int s = num % 60;

			System.out.println(h + ":" + m + ":" + s); 

		}
}