import java.util.Scanner;

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

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