import java.util.Scanner;


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


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