import java.util.Scanner;

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

public class Main{
	public static void main(String[] args){
		Scanner scan=new Scanner(System.in);
		
		int h,m,s;
		int S=scan.nextInt();
		h=S/3600;
		S=S%3600;
		m=S/60;
		s=S%60;
		System.out.printf("%d:%d:%d\n",h,m,s);
		
		
		scan.close();
	}
}