import java.util.Scanner;

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

public class Main{
	
	int S;
	int hour;
	int min;
	int seco;
	
	public void solve(){
		Scanner sc = new Scanner(System.in);
		S =sc.nextInt();
		
		hour = S / 3600;
		min = (S - hour*3600) / 60;
		seco= (S - hour*3600) - (min*60);
		
		System.out.println(hour+":"+min+":"+seco);
		
	}
	
	public static void main(String[]args){
		Main obj = new Main();
		obj.solve();
	}
}