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));
        String str = br.readLine();
        int n = Integer.parseInt(str);
        int h, m, s;
        if(n>=0 && n<86400){
        	h = n/3600;
        	int rim = n % 3600;
        	m= rim/60;
        	s =rim%60;
        	System.out.println(h +":" + m + ":" + s);
        }
	}
} 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));
        String str = br.readLine();
        int n = Integer.parseInt(str);
        int h, m, s;
        if(n>=0 && n<86400){
        	h = n/3600;
        	int rim = n % 3600;
        	m= rim/60;
        	s =rim%60;
        	System.out.println(h +":" + m + ":" + s);
        }
	}
} Main public static void main(String[] args)throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = br.readLine();
        int n = Integer.parseInt(str);
        int h, m, s;
        if(n>=0 && n<86400){
        	h = n/3600;
        	int rim = n % 3600;
        	m= rim/60;
        	s =rim%60;
        	System.out.println(h +":" + m + ":" + s);
        }
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = br.readLine();
        int n = Integer.parseInt(str);
        int h, m, s;
        if(n>=0 && n<86400){
        	h = n/3600;
        	int rim = n % 3600;
        	m= rim/60;
        	s =rim%60;
        	System.out.println(h +":" + m + ":" + s);
        }
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String str = br.readLine(); str br.readLine() br.readLine br int n = Integer.parseInt(str); n Integer.parseInt(str) Integer.parseInt Integer str int h h m m s; s if(n>=0 && n<86400){
        	h = n/3600;
        	int rim = n % 3600;
        	m= rim/60;
        	s =rim%60;
        	System.out.println(h +":" + m + ":" + s);
        } n>=0 && n<86400 n>=0 n 0 n<86400 n 86400 {
        	h = n/3600;
        	int rim = n % 3600;
        	m= rim/60;
        	s =rim%60;
        	System.out.println(h +":" + m + ":" + s);
        } h = n/3600 h n/3600 n 3600 int rim = n % 3600; rim n % 3600 n 3600 m= rim/60 m rim/60 rim 60 s =rim%60 s rim%60 rim 60 System.out.println(h +":" + m + ":" + s) System.out.println System.out System System.out h +":" + m + ":" + s ":" m h +":" + m + ":" + s h ":" m ":" s String[] args args public class Main {
	public static void main(String[] args)throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = br.readLine();
        int n = Integer.parseInt(str);
        int h, m, s;
        if(n>=0 && n<86400){
        	h = n/3600;
        	int rim = n % 3600;
        	m= rim/60;
        	s =rim%60;
        	System.out.println(h +":" + m + ":" + s);
        }
	}
} public class Main {
	public static void main(String[] args)throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = br.readLine();
        int n = Integer.parseInt(str);
        int h, m, s;
        if(n>=0 && n<86400){
        	h = n/3600;
        	int rim = n % 3600;
        	m= rim/60;
        	s =rim%60;
        	System.out.println(h +":" + m + ":" + s);
        }
	}
} 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));
        String str = br.readLine();
        int n = Integer.parseInt(str);
        int h, m, s;
        if(n>=0 && n<86400){
        	h = n/3600;
        	int rim = n % 3600;
        	m= rim/60;
        	s =rim%60;
        	System.out.println(h +":" + m + ":" + s);
        }
	}
}