import java.util.Scanner;

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

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