import java.util.Scanner;
public class Main {

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

	public static void main(String args []){
		Scanner scan = new Scanner(System.in);
			int i = scan.nextInt();
			int h = i / 3600;
			int m = (i / 60) % 60;
			int s = i % 60;
			System.out.print("" + h);
			System.out.print(":" + m);
			System.out.println(":"+ s);
			
	}
} Main public static void main(String args []){
		Scanner scan = new Scanner(System.in);
			int i = scan.nextInt();
			int h = i / 3600;
			int m = (i / 60) % 60;
			int s = i % 60;
			System.out.print("" + h);
			System.out.print(":" + m);
			System.out.println(":"+ s);
			
	} main {
		Scanner scan = new Scanner(System.in);
			int i = scan.nextInt();
			int h = i / 3600;
			int m = (i / 60) % 60;
			int s = i % 60;
			System.out.print("" + h);
			System.out.print(":" + m);
			System.out.println(":"+ s);
			
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int i = scan.nextInt(); i scan.nextInt() scan.nextInt scan int h = i / 3600; h i / 3600 i 3600 int m = (i / 60) % 60; m (i / 60) % 60 (i / 60) i 60 60 int s = i % 60; s i % 60 i 60 System.out.print("" + h) System.out.print System.out System System.out "" + h "" h System.out.print(":" + m) System.out.print System.out System System.out ":" + m ":" m System.out.println(":"+ s) System.out.println System.out System System.out ":"+ s ":" s String args [] args public class Main {

	public static void main(String args []){
		Scanner scan = new Scanner(System.in);
			int i = scan.nextInt();
			int h = i / 3600;
			int m = (i / 60) % 60;
			int s = i % 60;
			System.out.print("" + h);
			System.out.print(":" + m);
			System.out.println(":"+ s);
			
	}
} public class Main {

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

	public static void main(String args []){
		Scanner scan = new Scanner(System.in);
			int i = scan.nextInt();
			int h = i / 3600;
			int m = (i / 60) % 60;
			int s = i % 60;
			System.out.print("" + h);
			System.out.print(":" + m);
			System.out.println(":"+ s);
			
	}
}