import java.io.*;

public class Main {
	public static void main(String[] args)throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		Main m = new Main();
		String sec_ = br.readLine();
		int sec = Integer.parseInt(sec_);
		m.SecToTime(sec);
	}
	
	public void SecToTime(int sec){
		int h = 0,m = 0;
		
		while(sec >= 3600){
			h++;
			sec -= 3600;
		}
		
		while(sec >= 60){
			m++;
			sec -= 60;
		}
		
		System.out.println(h+":"+m+":"+sec);
	}
} import java.io.*; io.* java public class Main {
	public static void main(String[] args)throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		Main m = new Main();
		String sec_ = br.readLine();
		int sec = Integer.parseInt(sec_);
		m.SecToTime(sec);
	}
	
	public void SecToTime(int sec){
		int h = 0,m = 0;
		
		while(sec >= 3600){
			h++;
			sec -= 3600;
		}
		
		while(sec >= 60){
			m++;
			sec -= 60;
		}
		
		System.out.println(h+":"+m+":"+sec);
	}
} Main public static void main(String[] args)throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		Main m = new Main();
		String sec_ = br.readLine();
		int sec = Integer.parseInt(sec_);
		m.SecToTime(sec);
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		Main m = new Main();
		String sec_ = br.readLine();
		int sec = Integer.parseInt(sec_);
		m.SecToTime(sec);
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) Main m = new Main(); m new Main() String sec_ = br.readLine(); sec_ br.readLine() br.readLine br int sec = Integer.parseInt(sec_); sec Integer.parseInt(sec_) Integer.parseInt Integer sec_ m.SecToTime(sec) m.SecToTime m sec String[] args args public void SecToTime(int sec){
		int h = 0,m = 0;
		
		while(sec >= 3600){
			h++;
			sec -= 3600;
		}
		
		while(sec >= 60){
			m++;
			sec -= 60;
		}
		
		System.out.println(h+":"+m+":"+sec);
	} SecToTime {
		int h = 0,m = 0;
		
		while(sec >= 3600){
			h++;
			sec -= 3600;
		}
		
		while(sec >= 60){
			m++;
			sec -= 60;
		}
		
		System.out.println(h+":"+m+":"+sec);
	} int h = 0 h 0 m = 0; m 0 while(sec >= 3600){
			h++;
			sec -= 3600;
		} sec >= 3600 sec 3600 {
			h++;
			sec -= 3600;
		} h++ h sec -= 3600 sec 3600 while(sec >= 60){
			m++;
			sec -= 60;
		} sec >= 60 sec 60 {
			m++;
			sec -= 60;
		} m++ m sec -= 60 sec 60 System.out.println(h+":"+m+":"+sec) System.out.println System.out System System.out h+":"+m+":"+sec ":" m h+":"+m+":"+sec h ":" m ":" sec int sec sec public class Main {
	public static void main(String[] args)throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		Main m = new Main();
		String sec_ = br.readLine();
		int sec = Integer.parseInt(sec_);
		m.SecToTime(sec);
	}
	
	public void SecToTime(int sec){
		int h = 0,m = 0;
		
		while(sec >= 3600){
			h++;
			sec -= 3600;
		}
		
		while(sec >= 60){
			m++;
			sec -= 60;
		}
		
		System.out.println(h+":"+m+":"+sec);
	}
} public class Main {
	public static void main(String[] args)throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		Main m = new Main();
		String sec_ = br.readLine();
		int sec = Integer.parseInt(sec_);
		m.SecToTime(sec);
	}
	
	public void SecToTime(int sec){
		int h = 0,m = 0;
		
		while(sec >= 3600){
			h++;
			sec -= 3600;
		}
		
		while(sec >= 60){
			m++;
			sec -= 60;
		}
		
		System.out.println(h+":"+m+":"+sec);
	}
} Main
import java.io.*;

public class Main {
	public static void main(String[] args)throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		Main m = new Main();
		String sec_ = br.readLine();
		int sec = Integer.parseInt(sec_);
		m.SecToTime(sec);
	}
	
	public void SecToTime(int sec){
		int h = 0,m = 0;
		
		while(sec >= 3600){
			h++;
			sec -= 3600;
		}
		
		while(sec >= 60){
			m++;
			sec -= 60;
		}
		
		System.out.println(h+":"+m+":"+sec);
	}
}