import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		int S = sc.nextInt();
		int h = 0;
		int m = 0;
		int s = 0;
		while(S >= 3600) {
			S = S - 3600;
			h++;
		}
		while(S >= 60) {
			S = S - 60;
			m++;
		}
		s = S;
		System.out.println(h + ":" + m + ":" + s);
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		int S = sc.nextInt();
		int h = 0;
		int m = 0;
		int s = 0;
		while(S >= 3600) {
			S = S - 3600;
			h++;
		}
		while(S >= 60) {
			S = S - 60;
			m++;
		}
		s = S;
		System.out.println(h + ":" + m + ":" + s);
	}
} Main public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		int S = sc.nextInt();
		int h = 0;
		int m = 0;
		int s = 0;
		while(S >= 3600) {
			S = S - 3600;
			h++;
		}
		while(S >= 60) {
			S = S - 60;
			m++;
		}
		s = S;
		System.out.println(h + ":" + m + ":" + s);
	} main {
		
		Scanner sc = new Scanner(System.in);
		int S = sc.nextInt();
		int h = 0;
		int m = 0;
		int s = 0;
		while(S >= 3600) {
			S = S - 3600;
			h++;
		}
		while(S >= 60) {
			S = S - 60;
			m++;
		}
		s = S;
		System.out.println(h + ":" + m + ":" + s);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int S = sc.nextInt(); S sc.nextInt() sc.nextInt sc int h = 0; h 0 int m = 0; m 0 int s = 0; s 0 while(S >= 3600) {
			S = S - 3600;
			h++;
		} S >= 3600 S 3600 {
			S = S - 3600;
			h++;
		} S = S - 3600 S S - 3600 S 3600 h++ h while(S >= 60) {
			S = S - 60;
			m++;
		} S >= 60 S 60 {
			S = S - 60;
			m++;
		} S = S - 60 S S - 60 S 60 m++ m s = S s S 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 sc = new Scanner(System.in);
		int S = sc.nextInt();
		int h = 0;
		int m = 0;
		int s = 0;
		while(S >= 3600) {
			S = S - 3600;
			h++;
		}
		while(S >= 60) {
			S = S - 60;
			m++;
		}
		s = S;
		System.out.println(h + ":" + m + ":" + s);
	}
} public class Main {
	public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		int S = sc.nextInt();
		int h = 0;
		int m = 0;
		int s = 0;
		while(S >= 3600) {
			S = S - 3600;
			h++;
		}
		while(S >= 60) {
			S = S - 60;
			m++;
		}
		s = S;
		System.out.println(h + ":" + m + ":" + s);
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		int S = sc.nextInt();
		int h = 0;
		int m = 0;
		int s = 0;
		while(S >= 3600) {
			S = S - 3600;
			h++;
		}
		while(S >= 60) {
			S = S - 60;
			m++;
		}
		s = S;
		System.out.println(h + ":" + m + ":" + s);
	}
}