import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {
    public static void main(String[] args) throws Exception {
        // Here your code !
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        int S = Integer.valueOf(line);
        int h = S/3600;
        int m = S%3600/60;
        int s = S%60%60;
        String time = String.format("%s:%s:%s",h,m,s);
        System.out.println(time);
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {
    public static void main(String[] args) throws Exception {
        // Here your code !
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        int S = Integer.valueOf(line);
        int h = S/3600;
        int m = S%3600/60;
        int s = S%60%60;
        String time = String.format("%s:%s:%s",h,m,s);
        System.out.println(time);
    }
} Main public static void main(String[] args) throws Exception {
        // Here your code !
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        int S = Integer.valueOf(line);
        int h = S/3600;
        int m = S%3600/60;
        int s = S%60%60;
        String time = String.format("%s:%s:%s",h,m,s);
        System.out.println(time);
    } main {
        // Here your code !
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        int S = Integer.valueOf(line);
        int h = S/3600;
        int m = S%3600/60;
        int s = S%60%60;
        String time = String.format("%s:%s:%s",h,m,s);
        System.out.println(time);
    } 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.valueOf(line); S Integer.valueOf(line) Integer.valueOf 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 int s = S%60%60; s S%60%60 S%60%60 S 60 60 String time = String.format("%s:%s:%s",h,m,s); time String.format("%s:%s:%s",h,m,s) String.format String "%s:%s:%s" h m s System.out.println(time) System.out.println System.out System System.out time String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        // Here your code !
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        int S = Integer.valueOf(line);
        int h = S/3600;
        int m = S%3600/60;
        int s = S%60%60;
        String time = String.format("%s:%s:%s",h,m,s);
        System.out.println(time);
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        // Here your code !
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        int S = Integer.valueOf(line);
        int h = S/3600;
        int m = S%3600/60;
        int s = S%60%60;
        String time = String.format("%s:%s:%s",h,m,s);
        System.out.println(time);
    }
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {
    public static void main(String[] args) throws Exception {
        // Here your code !
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        int S = Integer.valueOf(line);
        int h = S/3600;
        int m = S%3600/60;
        int s = S%60%60;
        String time = String.format("%s:%s:%s",h,m,s);
        System.out.println(time);
    }
}