import java.util.Scanner;

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

public class Main {
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int time = scan.nextInt();
		scan.close();
		int h,m,s;
		s = time % 60;
		m = time / 60;
		h = m / 60;
		m = m - h * 60;
		String answer =h + ":" + m +":" + s;
		System.out.println(answer);
	}
}