public class Main {
	public static void main(String[] args) {
		int inputSecond	= new java.util.Scanner(System.in).nextInt();
		
		int second	= inputSecond % 60;
		int minute	= inputSecond / 60;
		minute		= minute % 60;
		int hour	= inputSecond / (60*60);
		
		System.out.println( hour + ":" + minute + ":" + second );
	}
} public class Main {
	public static void main(String[] args) {
		int inputSecond	= new java.util.Scanner(System.in).nextInt();
		
		int second	= inputSecond % 60;
		int minute	= inputSecond / 60;
		minute		= minute % 60;
		int hour	= inputSecond / (60*60);
		
		System.out.println( hour + ":" + minute + ":" + second );
	}
} Main public static void main(String[] args) {
		int inputSecond	= new java.util.Scanner(System.in).nextInt();
		
		int second	= inputSecond % 60;
		int minute	= inputSecond / 60;
		minute		= minute % 60;
		int hour	= inputSecond / (60*60);
		
		System.out.println( hour + ":" + minute + ":" + second );
	} main {
		int inputSecond	= new java.util.Scanner(System.in).nextInt();
		
		int second	= inputSecond % 60;
		int minute	= inputSecond / 60;
		minute		= minute % 60;
		int hour	= inputSecond / (60*60);
		
		System.out.println( hour + ":" + minute + ":" + second );
	} int inputSecond	= new java.util.Scanner(System.in).nextInt(); inputSecond new java.util.Scanner(System.in).nextInt() new java.util.Scanner(System.in).nextInt new java.util.Scanner(System.in) int second	= inputSecond % 60; second inputSecond % 60 inputSecond 60 int minute	= inputSecond / 60; minute inputSecond / 60 inputSecond 60 minute		= minute % 60 minute minute % 60 minute 60 int hour	= inputSecond / (60*60); hour inputSecond / (60*60) inputSecond (60*60) 60 60 System.out.println( hour + ":" + minute + ":" + second ) System.out.println System.out System System.out hour + ":" + minute + ":" + second ":" minute hour + ":" + minute + ":" + second hour ":" minute ":" second String[] args args public class Main {
	public static void main(String[] args) {
		int inputSecond	= new java.util.Scanner(System.in).nextInt();
		
		int second	= inputSecond % 60;
		int minute	= inputSecond / 60;
		minute		= minute % 60;
		int hour	= inputSecond / (60*60);
		
		System.out.println( hour + ":" + minute + ":" + second );
	}
} public class Main {
	public static void main(String[] args) {
		int inputSecond	= new java.util.Scanner(System.in).nextInt();
		
		int second	= inputSecond % 60;
		int minute	= inputSecond / 60;
		minute		= minute % 60;
		int hour	= inputSecond / (60*60);
		
		System.out.println( hour + ":" + minute + ":" + second );
	}
} Main
public class Main {
	public static void main(String[] args) {
		int inputSecond	= new java.util.Scanner(System.in).nextInt();
		
		int second	= inputSecond % 60;
		int minute	= inputSecond / 60;
		minute		= minute % 60;
		int hour	= inputSecond / (60*60);
		
		System.out.println( hour + ":" + minute + ":" + second );
	}
}