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

public class Main {
	public static void main(String[] args)throws IOException{
		BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
	String s;
	int x;
	s= buf.readLine();
	x= Integer.parseInt(s);
	int a = x/3600;
	int b = (x%3600)/60;
	int c = (x%3600)%60;
	System.out.println(a+":"+b+":"+c);
	}
} 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 buf = new BufferedReader(new InputStreamReader(System.in));
	String s;
	int x;
	s= buf.readLine();
	x= Integer.parseInt(s);
	int a = x/3600;
	int b = (x%3600)/60;
	int c = (x%3600)%60;
	System.out.println(a+":"+b+":"+c);
	}
} Main public static void main(String[] args)throws IOException{
		BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
	String s;
	int x;
	s= buf.readLine();
	x= Integer.parseInt(s);
	int a = x/3600;
	int b = (x%3600)/60;
	int c = (x%3600)%60;
	System.out.println(a+":"+b+":"+c);
	} main {
		BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
	String s;
	int x;
	s= buf.readLine();
	x= Integer.parseInt(s);
	int a = x/3600;
	int b = (x%3600)/60;
	int c = (x%3600)%60;
	System.out.println(a+":"+b+":"+c);
	} BufferedReader buf = new BufferedReader(new InputStreamReader(System.in)); buf new BufferedReader(new InputStreamReader(System.in)) String s; s int x; x s= buf.readLine() s buf.readLine() buf.readLine buf x= Integer.parseInt(s) x Integer.parseInt(s) Integer.parseInt Integer s int a = x/3600; a x/3600 x 3600 int b = (x%3600)/60; b (x%3600)/60 (x%3600) x 3600 60 int c = (x%3600)%60; c (x%3600)%60 (x%3600) x 3600 60 System.out.println(a+":"+b+":"+c) System.out.println System.out System System.out a+":"+b+":"+c ":" b a+":"+b+":"+c a ":" b ":" c String[] args args public class Main {
	public static void main(String[] args)throws IOException{
		BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
	String s;
	int x;
	s= buf.readLine();
	x= Integer.parseInt(s);
	int a = x/3600;
	int b = (x%3600)/60;
	int c = (x%3600)%60;
	System.out.println(a+":"+b+":"+c);
	}
} public class Main {
	public static void main(String[] args)throws IOException{
		BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
	String s;
	int x;
	s= buf.readLine();
	x= Integer.parseInt(s);
	int a = x/3600;
	int b = (x%3600)/60;
	int c = (x%3600)%60;
	System.out.println(a+":"+b+":"+c);
	}
} 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 buf = new BufferedReader(new InputStreamReader(System.in));
	String s;
	int x;
	s= buf.readLine();
	x= Integer.parseInt(s);
	int a = x/3600;
	int b = (x%3600)/60;
	int c = (x%3600)%60;
	System.out.println(a+":"+b+":"+c);
	}
}