import java.io.*;
import java.util.*;
public class Main {
	public static void main(String[] args)throws IOException{
		String a;
		BufferedReader buf=new BufferedReader(new InputStreamReader(System.in));
		a=buf.readLine();
		int x=Integer.parseInt(a);
	//	if(x/3600<10)System.out.print("0");
		System.out.print(x/3600);
		System.out.print(":");
		int y;
		int g=x;
		g=g/60;
		while(true){
			if(g>=60){
				g-=60;
				
			}else{
				break;
			}
			
		}
	//	if(g<10)System.out.print("0");
		System.out.print(g);
		System.out.print(":");
		while(true){
			if(x>=60){
				x-=60;
			}else{
				break;
			}
		}
	//	if(x<10)System.out.print("0");
		System.out.println(x);
		
	}

} import java.io.*; io.* java import java.util.*; util.* java public class Main {
	public static void main(String[] args)throws IOException{
		String a;
		BufferedReader buf=new BufferedReader(new InputStreamReader(System.in));
		a=buf.readLine();
		int x=Integer.parseInt(a);
	//	if(x/3600<10)System.out.print("0");
		System.out.print(x/3600);
		System.out.print(":");
		int y;
		int g=x;
		g=g/60;
		while(true){
			if(g>=60){
				g-=60;
				
			}else{
				break;
			}
			
		}
	//	if(g<10)System.out.print("0");
		System.out.print(g);
		System.out.print(":");
		while(true){
			if(x>=60){
				x-=60;
			}else{
				break;
			}
		}
	//	if(x<10)System.out.print("0");
		System.out.println(x);
		
	}

} Main public static void main(String[] args)throws IOException{
		String a;
		BufferedReader buf=new BufferedReader(new InputStreamReader(System.in));
		a=buf.readLine();
		int x=Integer.parseInt(a);
	//	if(x/3600<10)System.out.print("0");
		System.out.print(x/3600);
		System.out.print(":");
		int y;
		int g=x;
		g=g/60;
		while(true){
			if(g>=60){
				g-=60;
				
			}else{
				break;
			}
			
		}
	//	if(g<10)System.out.print("0");
		System.out.print(g);
		System.out.print(":");
		while(true){
			if(x>=60){
				x-=60;
			}else{
				break;
			}
		}
	//	if(x<10)System.out.print("0");
		System.out.println(x);
		
	} main {
		String a;
		BufferedReader buf=new BufferedReader(new InputStreamReader(System.in));
		a=buf.readLine();
		int x=Integer.parseInt(a);
	//	if(x/3600<10)System.out.print("0");
		System.out.print(x/3600);
		System.out.print(":");
		int y;
		int g=x;
		g=g/60;
		while(true){
			if(g>=60){
				g-=60;
				
			}else{
				break;
			}
			
		}
	//	if(g<10)System.out.print("0");
		System.out.print(g);
		System.out.print(":");
		while(true){
			if(x>=60){
				x-=60;
			}else{
				break;
			}
		}
	//	if(x<10)System.out.print("0");
		System.out.println(x);
		
	} String a; a BufferedReader buf=new BufferedReader(new InputStreamReader(System.in)); buf new BufferedReader(new InputStreamReader(System.in)) a=buf.readLine() a buf.readLine() buf.readLine buf int x=Integer.parseInt(a); x Integer.parseInt(a) Integer.parseInt Integer a System.out.print(x/3600) System.out.print System.out System System.out x/3600 x 3600 System.out.print(":") System.out.print System.out System System.out ":" int y; y int g=x; g x g=g/60 g g/60 g 60 while(true){
			if(g>=60){
				g-=60;
				
			}else{
				break;
			}
			
		} true {
			if(g>=60){
				g-=60;
				
			}else{
				break;
			}
			
		} if(g>=60){
				g-=60;
				
			}else{
				break;
			} g>=60 g 60 {
				g-=60;
				
			} g-=60 g 60 {
				break;
			} break; System.out.print(g) System.out.print System.out System System.out g System.out.print(":") System.out.print System.out System System.out ":" while(true){
			if(x>=60){
				x-=60;
			}else{
				break;
			}
		} true {
			if(x>=60){
				x-=60;
			}else{
				break;
			}
		} if(x>=60){
				x-=60;
			}else{
				break;
			} x>=60 x 60 {
				x-=60;
			} x-=60 x 60 {
				break;
			} break; System.out.println(x) System.out.println System.out System System.out x String[] args args public class Main {
	public static void main(String[] args)throws IOException{
		String a;
		BufferedReader buf=new BufferedReader(new InputStreamReader(System.in));
		a=buf.readLine();
		int x=Integer.parseInt(a);
	//	if(x/3600<10)System.out.print("0");
		System.out.print(x/3600);
		System.out.print(":");
		int y;
		int g=x;
		g=g/60;
		while(true){
			if(g>=60){
				g-=60;
				
			}else{
				break;
			}
			
		}
	//	if(g<10)System.out.print("0");
		System.out.print(g);
		System.out.print(":");
		while(true){
			if(x>=60){
				x-=60;
			}else{
				break;
			}
		}
	//	if(x<10)System.out.print("0");
		System.out.println(x);
		
	}

} public class Main {
	public static void main(String[] args)throws IOException{
		String a;
		BufferedReader buf=new BufferedReader(new InputStreamReader(System.in));
		a=buf.readLine();
		int x=Integer.parseInt(a);
	//	if(x/3600<10)System.out.print("0");
		System.out.print(x/3600);
		System.out.print(":");
		int y;
		int g=x;
		g=g/60;
		while(true){
			if(g>=60){
				g-=60;
				
			}else{
				break;
			}
			
		}
	//	if(g<10)System.out.print("0");
		System.out.print(g);
		System.out.print(":");
		while(true){
			if(x>=60){
				x-=60;
			}else{
				break;
			}
		}
	//	if(x<10)System.out.print("0");
		System.out.println(x);
		
	}

} Main
import java.io.*;
import java.util.*;
public class Main {
	public static void main(String[] args)throws IOException{
		String a;
		BufferedReader buf=new BufferedReader(new InputStreamReader(System.in));
		a=buf.readLine();
		int x=Integer.parseInt(a);
	//	if(x/3600<10)System.out.print("0");
		System.out.print(x/3600);
		System.out.print(":");
		int y;
		int g=x;
		g=g/60;
		while(true){
			if(g>=60){
				g-=60;
				
			}else{
				break;
			}
			
		}
	//	if(g<10)System.out.print("0");
		System.out.print(g);
		System.out.print(":");
		while(true){
			if(x>=60){
				x-=60;
			}else{
				break;
			}
		}
	//	if(x<10)System.out.print("0");
		System.out.println(x);
		
	}

}