import java.util.Scanner;


public class Main {
	
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		
		final long time = sc.nextLong();
		
		System.out.println(time / (60 * 60) + ":" + (time / 60 % 60) + ":" + (time % 60));
		
	}
	
} import java.util.Scanner; Scanner java.util public class Main {
	
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		
		final long time = sc.nextLong();
		
		System.out.println(time / (60 * 60) + ":" + (time / 60 % 60) + ":" + (time % 60));
		
	}
	
} Main public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		
		final long time = sc.nextLong();
		
		System.out.println(time / (60 * 60) + ":" + (time / 60 % 60) + ":" + (time % 60));
		
	} main {
		Scanner sc = new Scanner(System.in);
		
		final long time = sc.nextLong();
		
		System.out.println(time / (60 * 60) + ":" + (time / 60 % 60) + ":" + (time % 60));
		
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) final long time = sc.nextLong(); time sc.nextLong() sc.nextLong sc System.out.println(time / (60 * 60) + ":" + (time / 60 % 60) + ":" + (time % 60)) System.out.println System.out System System.out time / (60 * 60) + ":" + (time / 60 % 60) + ":" + (time % 60) ":" (time / 60 % 60) time / (60 * 60) + ":" + (time / 60 % 60) + ":" + (time % 60) time / (60 * 60) time (60 * 60) 60 60 ":" (time / 60 % 60) time / 60 time 60 60 ":" (time % 60) time 60 String args[] args public class Main {
	
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		
		final long time = sc.nextLong();
		
		System.out.println(time / (60 * 60) + ":" + (time / 60 % 60) + ":" + (time % 60));
		
	}
	
} public class Main {
	
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		
		final long time = sc.nextLong();
		
		System.out.println(time / (60 * 60) + ":" + (time / 60 % 60) + ":" + (time % 60));
		
	}
	
} Main
import java.util.Scanner;


public class Main {
	
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		
		final long time = sc.nextLong();
		
		System.out.println(time / (60 * 60) + ":" + (time / 60 % 60) + ":" + (time % 60));
		
	}
	
}