import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
	public static void main(String[] args)throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int ss = Integer.parseInt(br.readLine());
		System.out.print(ss/3600 + ":");
		int s =ss%3600;
		System.out.print(s/60 +":");
		int m = s%60;
		System.out.println(m%60);
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {
	public static void main(String[] args)throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int ss = Integer.parseInt(br.readLine());
		System.out.print(ss/3600 + ":");
		int s =ss%3600;
		System.out.print(s/60 +":");
		int m = s%60;
		System.out.println(m%60);
	}
} Main public static void main(String[] args)throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int ss = Integer.parseInt(br.readLine());
		System.out.print(ss/3600 + ":");
		int s =ss%3600;
		System.out.print(s/60 +":");
		int m = s%60;
		System.out.println(m%60);
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int ss = Integer.parseInt(br.readLine());
		System.out.print(ss/3600 + ":");
		int s =ss%3600;
		System.out.print(s/60 +":");
		int m = s%60;
		System.out.println(m%60);
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int ss = Integer.parseInt(br.readLine()); ss Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br System.out.print(ss/3600 + ":") System.out.print System.out System System.out ss/3600 + ":" ss/3600 ss 3600 ":" int s =ss%3600; s ss%3600 ss 3600 System.out.print(s/60 +":") System.out.print System.out System System.out s/60 +":" s/60 s 60 ":" int m = s%60; m s%60 s 60 System.out.println(m%60) System.out.println System.out System System.out m%60 m 60 String[] args args public class Main {
	public static void main(String[] args)throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int ss = Integer.parseInt(br.readLine());
		System.out.print(ss/3600 + ":");
		int s =ss%3600;
		System.out.print(s/60 +":");
		int m = s%60;
		System.out.println(m%60);
	}
} public class Main {
	public static void main(String[] args)throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int ss = Integer.parseInt(br.readLine());
		System.out.print(ss/3600 + ":");
		int s =ss%3600;
		System.out.print(s/60 +":");
		int m = s%60;
		System.out.println(m%60);
	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
	public static void main(String[] args)throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int ss = Integer.parseInt(br.readLine());
		System.out.print(ss/3600 + ":");
		int s =ss%3600;
		System.out.print(s/60 +":");
		int m = s%60;
		System.out.println(m%60);
	}
}