import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int num1 = scanner.nextInt();
		int num2 = num1/3600;
		int num3 = num1%3600/60;
		int num4 = num1%60;
		System.out.println(String.format("%s:%s:%s", num2,num3,num4));
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int num1 = scanner.nextInt();
		int num2 = num1/3600;
		int num3 = num1%3600/60;
		int num4 = num1%60;
		System.out.println(String.format("%s:%s:%s", num2,num3,num4));
	}
} Main public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int num1 = scanner.nextInt();
		int num2 = num1/3600;
		int num3 = num1%3600/60;
		int num4 = num1%60;
		System.out.println(String.format("%s:%s:%s", num2,num3,num4));
	} main {
		Scanner scanner = new Scanner(System.in);
		int num1 = scanner.nextInt();
		int num2 = num1/3600;
		int num3 = num1%3600/60;
		int num4 = num1%60;
		System.out.println(String.format("%s:%s:%s", num2,num3,num4));
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int num1 = scanner.nextInt(); num1 scanner.nextInt() scanner.nextInt scanner int num2 = num1/3600; num2 num1/3600 num1 3600 int num3 = num1%3600/60; num3 num1%3600/60 num1%3600 num1 3600 60 int num4 = num1%60; num4 num1%60 num1 60 System.out.println(String.format("%s:%s:%s", num2,num3,num4)) System.out.println System.out System System.out String.format("%s:%s:%s", num2,num3,num4) String.format String "%s:%s:%s" num2 num3 num4 String[] args args public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int num1 = scanner.nextInt();
		int num2 = num1/3600;
		int num3 = num1%3600/60;
		int num4 = num1%60;
		System.out.println(String.format("%s:%s:%s", num2,num3,num4));
	}
} public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int num1 = scanner.nextInt();
		int num2 = num1/3600;
		int num3 = num1%3600/60;
		int num4 = num1%60;
		System.out.println(String.format("%s:%s:%s", num2,num3,num4));
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int num1 = scanner.nextInt();
		int num2 = num1/3600;
		int num3 = num1%3600/60;
		int num4 = num1%60;
		System.out.println(String.format("%s:%s:%s", num2,num3,num4));
	}
}