import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int seconds = sc.nextInt();
		int hour_sec = 60 * 60;
		int minute_sec = 60;
		int h = seconds / hour_sec;
		int m = (seconds % hour_sec) / minute_sec;
		int s = seconds % hour_sec % minute_sec;
		System.out.println(String.valueOf(h) + ":" + String.valueOf(m) + ":" + String.valueOf(s));
		sc.close();
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int seconds = sc.nextInt();
		int hour_sec = 60 * 60;
		int minute_sec = 60;
		int h = seconds / hour_sec;
		int m = (seconds % hour_sec) / minute_sec;
		int s = seconds % hour_sec % minute_sec;
		System.out.println(String.valueOf(h) + ":" + String.valueOf(m) + ":" + String.valueOf(s));
		sc.close();
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int seconds = sc.nextInt();
		int hour_sec = 60 * 60;
		int minute_sec = 60;
		int h = seconds / hour_sec;
		int m = (seconds % hour_sec) / minute_sec;
		int s = seconds % hour_sec % minute_sec;
		System.out.println(String.valueOf(h) + ":" + String.valueOf(m) + ":" + String.valueOf(s));
		sc.close();
	} main {
		Scanner sc = new Scanner(System.in);
		int seconds = sc.nextInt();
		int hour_sec = 60 * 60;
		int minute_sec = 60;
		int h = seconds / hour_sec;
		int m = (seconds % hour_sec) / minute_sec;
		int s = seconds % hour_sec % minute_sec;
		System.out.println(String.valueOf(h) + ":" + String.valueOf(m) + ":" + String.valueOf(s));
		sc.close();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int seconds = sc.nextInt(); seconds sc.nextInt() sc.nextInt sc int hour_sec = 60 * 60; hour_sec 60 * 60 60 60 int minute_sec = 60; minute_sec 60 int h = seconds / hour_sec; h seconds / hour_sec seconds hour_sec int m = (seconds % hour_sec) / minute_sec; m (seconds % hour_sec) / minute_sec (seconds % hour_sec) seconds hour_sec minute_sec int s = seconds % hour_sec % minute_sec; s seconds % hour_sec % minute_sec seconds % hour_sec % minute_sec seconds hour_sec minute_sec System.out.println(String.valueOf(h) + ":" + String.valueOf(m) + ":" + String.valueOf(s)) System.out.println System.out System System.out String.valueOf(h) + ":" + String.valueOf(m) + ":" + String.valueOf(s) ":" String.valueOf(m) String.valueOf(h) + ":" + String.valueOf(m) + ":" + String.valueOf(s) String.valueOf(h) String.valueOf String h ":" String.valueOf(m) String.valueOf String m ":" String.valueOf(s) String.valueOf String s sc.close() sc.close sc String[] args args public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int seconds = sc.nextInt();
		int hour_sec = 60 * 60;
		int minute_sec = 60;
		int h = seconds / hour_sec;
		int m = (seconds % hour_sec) / minute_sec;
		int s = seconds % hour_sec % minute_sec;
		System.out.println(String.valueOf(h) + ":" + String.valueOf(m) + ":" + String.valueOf(s));
		sc.close();
	}
} public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int seconds = sc.nextInt();
		int hour_sec = 60 * 60;
		int minute_sec = 60;
		int h = seconds / hour_sec;
		int m = (seconds % hour_sec) / minute_sec;
		int s = seconds % hour_sec % minute_sec;
		System.out.println(String.valueOf(h) + ":" + String.valueOf(m) + ":" + String.valueOf(s));
		sc.close();
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int seconds = sc.nextInt();
		int hour_sec = 60 * 60;
		int minute_sec = 60;
		int h = seconds / hour_sec;
		int m = (seconds % hour_sec) / minute_sec;
		int s = seconds % hour_sec % minute_sec;
		System.out.println(String.valueOf(h) + ":" + String.valueOf(m) + ":" + String.valueOf(s));
		sc.close();
	}
}