import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int s = Integer.parseInt(scan.next());
		int h = s / 3600;
		s = s % 3600;
		int m = s / 60;
		System.out.println(h + ":" + m + ":" + s % 60);
		scan.close();
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int s = Integer.parseInt(scan.next());
		int h = s / 3600;
		s = s % 3600;
		int m = s / 60;
		System.out.println(h + ":" + m + ":" + s % 60);
		scan.close();
	}
} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int s = Integer.parseInt(scan.next());
		int h = s / 3600;
		s = s % 3600;
		int m = s / 60;
		System.out.println(h + ":" + m + ":" + s % 60);
		scan.close();
	} main {
		Scanner scan = new Scanner(System.in);
		int s = Integer.parseInt(scan.next());
		int h = s / 3600;
		s = s % 3600;
		int m = s / 60;
		System.out.println(h + ":" + m + ":" + s % 60);
		scan.close();
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int s = Integer.parseInt(scan.next()); s Integer.parseInt(scan.next()) Integer.parseInt Integer scan.next() scan.next scan int h = s / 3600; h s / 3600 s 3600 s = s % 3600 s s % 3600 s 3600 int m = s / 60; m s / 60 s 60 System.out.println(h + ":" + m + ":" + s % 60) System.out.println System.out System System.out h + ":" + m + ":" + s % 60 ":" m h + ":" + m + ":" + s % 60 h ":" m ":" s % 60 s 60 scan.close() scan.close scan String[] args args public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int s = Integer.parseInt(scan.next());
		int h = s / 3600;
		s = s % 3600;
		int m = s / 60;
		System.out.println(h + ":" + m + ":" + s % 60);
		scan.close();
	}
} public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int s = Integer.parseInt(scan.next());
		int h = s / 3600;
		s = s % 3600;
		int m = s / 60;
		System.out.println(h + ":" + m + ":" + s % 60);
		scan.close();
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int s = Integer.parseInt(scan.next());
		int h = s / 3600;
		s = s % 3600;
		int m = s / 60;
		System.out.println(h + ":" + m + ":" + s % 60);
		scan.close();
	}
}
