import java.util.Scanner;

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

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