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

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

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

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

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

}