//ITP1_1_D:   Watch
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

class Main {

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

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

class Main {

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