import java.io.IOException;
import java.util.Scanner;

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

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