import java.util.*;

public class Main {
	public static void main(String[] args){
		try{
			
		Scanner inputTime = new Scanner(System.in);
		int input = inputTime.nextInt();
		int h = input / 3600;
		int amari = input % 3600;
		int m = amari / 60;
		int s = amari % 60;
		
		System.out.println(h + ":" + m + ":" + s);
		
		}catch(InputMismatchException e){
			System.out.println("数字を入力してください。");
		}
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args){
		try{
			
		Scanner inputTime = new Scanner(System.in);
		int input = inputTime.nextInt();
		int h = input / 3600;
		int amari = input % 3600;
		int m = amari / 60;
		int s = amari % 60;
		
		System.out.println(h + ":" + m + ":" + s);
		
		}catch(InputMismatchException e){
			System.out.println("数字を入力してください。");
		}
	}
} Main public static void main(String[] args){
		try{
			
		Scanner inputTime = new Scanner(System.in);
		int input = inputTime.nextInt();
		int h = input / 3600;
		int amari = input % 3600;
		int m = amari / 60;
		int s = amari % 60;
		
		System.out.println(h + ":" + m + ":" + s);
		
		}catch(InputMismatchException e){
			System.out.println("数字を入力してください。");
		}
	} main {
		try{
			
		Scanner inputTime = new Scanner(System.in);
		int input = inputTime.nextInt();
		int h = input / 3600;
		int amari = input % 3600;
		int m = amari / 60;
		int s = amari % 60;
		
		System.out.println(h + ":" + m + ":" + s);
		
		}catch(InputMismatchException e){
			System.out.println("数字を入力してください。");
		}
	} try{
			
		Scanner inputTime = new Scanner(System.in);
		int input = inputTime.nextInt();
		int h = input / 3600;
		int amari = input % 3600;
		int m = amari / 60;
		int s = amari % 60;
		
		System.out.println(h + ":" + m + ":" + s);
		
		}catch(InputMismatchException e){
			System.out.println("数字を入力してください。");
		} catch(InputMismatchException e){
			System.out.println("数字を入力してください。");
		} InputMismatchException e {
			System.out.println("数字を入力してください。");
		} System.out.println("数字を入力してください。") System.out.println System.out System System.out "数字を入力してください。" {
			
		Scanner inputTime = new Scanner(System.in);
		int input = inputTime.nextInt();
		int h = input / 3600;
		int amari = input % 3600;
		int m = amari / 60;
		int s = amari % 60;
		
		System.out.println(h + ":" + m + ":" + s);
		
		} Scanner inputTime = new Scanner(System.in); inputTime new Scanner(System.in) int input = inputTime.nextInt(); input inputTime.nextInt() inputTime.nextInt inputTime int h = input / 3600; h input / 3600 input 3600 int amari = input % 3600; amari input % 3600 input 3600 int m = amari / 60; m amari / 60 amari 60 int s = amari % 60; s amari % 60 amari 60 System.out.println(h + ":" + m + ":" + s) System.out.println System.out System System.out h + ":" + m + ":" + s ":" m h + ":" + m + ":" + s h ":" m ":" s String[] args args public class Main {
	public static void main(String[] args){
		try{
			
		Scanner inputTime = new Scanner(System.in);
		int input = inputTime.nextInt();
		int h = input / 3600;
		int amari = input % 3600;
		int m = amari / 60;
		int s = amari % 60;
		
		System.out.println(h + ":" + m + ":" + s);
		
		}catch(InputMismatchException e){
			System.out.println("数字を入力してください。");
		}
	}
} public class Main {
	public static void main(String[] args){
		try{
			
		Scanner inputTime = new Scanner(System.in);
		int input = inputTime.nextInt();
		int h = input / 3600;
		int amari = input % 3600;
		int m = amari / 60;
		int s = amari % 60;
		
		System.out.println(h + ":" + m + ":" + s);
		
		}catch(InputMismatchException e){
			System.out.println("数字を入力してください。");
		}
	}
} Main
import java.util.*;

public class Main {
	public static void main(String[] args){
		try{
			
		Scanner inputTime = new Scanner(System.in);
		int input = inputTime.nextInt();
		int h = input / 3600;
		int amari = input % 3600;
		int m = amari / 60;
		int s = amari % 60;
		
		System.out.println(h + ":" + m + ":" + s);
		
		}catch(InputMismatchException e){
			System.out.println("数字を入力してください。");
		}
	}
}