import java.io.BufferedReader;
import java.io.InputStreamReader;
  
public class Main{
    public static void main(String args[])throws java.lang.Exception{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        //変数に配列を代入
        int s =Integer.parseInt(line);
        int h = s / 3600;
        int m = (s % 3600) / 60;
        s = s % 60;
        System.out.println(h+":"+m+":"+s);
        
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main{
    public static void main(String args[])throws java.lang.Exception{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        //変数に配列を代入
        int s =Integer.parseInt(line);
        int h = s / 3600;
        int m = (s % 3600) / 60;
        s = s % 60;
        System.out.println(h+":"+m+":"+s);
        
    }
} Main public static void main(String args[])throws java.lang.Exception{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        //変数に配列を代入
        int s =Integer.parseInt(line);
        int h = s / 3600;
        int m = (s % 3600) / 60;
        s = s % 60;
        System.out.println(h+":"+m+":"+s);
        
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        //変数に配列を代入
        int s =Integer.parseInt(line);
        int h = s / 3600;
        int m = (s % 3600) / 60;
        s = s % 60;
        System.out.println(h+":"+m+":"+s);
        
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String line = br.readLine(); line br.readLine() br.readLine br int s =Integer.parseInt(line); s Integer.parseInt(line) Integer.parseInt Integer line int h = s / 3600; h s / 3600 s 3600 int m = (s % 3600) / 60; m (s % 3600) / 60 (s % 3600) s 3600 60 s = s % 60 s s % 60 s 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 java.lang.Exception{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        //変数に配列を代入
        int s =Integer.parseInt(line);
        int h = s / 3600;
        int m = (s % 3600) / 60;
        s = s % 60;
        System.out.println(h+":"+m+":"+s);
        
    }
} public class Main{
    public static void main(String args[])throws java.lang.Exception{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        //変数に配列を代入
        int s =Integer.parseInt(line);
        int h = s / 3600;
        int m = (s % 3600) / 60;
        s = s % 60;
        System.out.println(h+":"+m+":"+s);
        
    }
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
  
public class Main{
    public static void main(String args[])throws java.lang.Exception{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        //変数に配列を代入
        int s =Integer.parseInt(line);
        int h = s / 3600;
        int m = (s % 3600) / 60;
        s = s % 60;
        System.out.println(h+":"+m+":"+s);
        
    }
}