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

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

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

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

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

}