import java.util.Scanner;
public class Main{
	
	public void solve(){
		Scanner sc = new Scanner(System.in);
		int S;
		S = sc.nextInt();
		
		System.out.println(((S-S%3600)/3600)+":"+((S-(S-S%3600)-(S%60))/60)+":"+(S%60));
	}
	public static void main(String[] args){
		Main obj = new Main();
		obj.solve();
	}
} import java.util.Scanner; Scanner java.util public class Main{
	
	public void solve(){
		Scanner sc = new Scanner(System.in);
		int S;
		S = sc.nextInt();
		
		System.out.println(((S-S%3600)/3600)+":"+((S-(S-S%3600)-(S%60))/60)+":"+(S%60));
	}
	public static void main(String[] args){
		Main obj = new Main();
		obj.solve();
	}
} Main public void solve(){
		Scanner sc = new Scanner(System.in);
		int S;
		S = sc.nextInt();
		
		System.out.println(((S-S%3600)/3600)+":"+((S-(S-S%3600)-(S%60))/60)+":"+(S%60));
	} solve {
		Scanner sc = new Scanner(System.in);
		int S;
		S = sc.nextInt();
		
		System.out.println(((S-S%3600)/3600)+":"+((S-(S-S%3600)-(S%60))/60)+":"+(S%60));
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int S; S S = sc.nextInt() S sc.nextInt() sc.nextInt sc System.out.println(((S-S%3600)/3600)+":"+((S-(S-S%3600)-(S%60))/60)+":"+(S%60)) System.out.println System.out System System.out ((S-S%3600)/3600)+":"+((S-(S-S%3600)-(S%60))/60)+":"+(S%60) ":" ((S-(S-S%3600)-(S%60))/60) ((S-S%3600)/3600)+":"+((S-(S-S%3600)-(S%60))/60)+":"+(S%60) ((S-S%3600)/3600) (S-S%3600) S S%3600 S 3600 3600 ":" ((S-(S-S%3600)-(S%60))/60) (S-(S-S%3600)-(S%60)) S-(S-S%3600)-(S%60) S (S-S%3600) S S%3600 S 3600 (S%60) S 60 60 ":" (S%60) S 60 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{
	
	public void solve(){
		Scanner sc = new Scanner(System.in);
		int S;
		S = sc.nextInt();
		
		System.out.println(((S-S%3600)/3600)+":"+((S-(S-S%3600)-(S%60))/60)+":"+(S%60));
	}
	public static void main(String[] args){
		Main obj = new Main();
		obj.solve();
	}
} public class Main{
	
	public void solve(){
		Scanner sc = new Scanner(System.in);
		int S;
		S = sc.nextInt();
		
		System.out.println(((S-S%3600)/3600)+":"+((S-(S-S%3600)-(S%60))/60)+":"+(S%60));
	}
	public static void main(String[] args){
		Main obj = new Main();
		obj.solve();
	}
} Main
import java.util.Scanner;
public class Main{
	
	public void solve(){
		Scanner sc = new Scanner(System.in);
		int S;
		S = sc.nextInt();
		
		System.out.println(((S-S%3600)/3600)+":"+((S-(S-S%3600)-(S%60))/60)+":"+(S%60));
	}
	public static void main(String[] args){
		Main obj = new Main();
		obj.solve();
	}
}