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