import java.util.Scanner;

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

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