class Main{
    
    public static void main(String[] args){
        java.util.Scanner in = new java.util.Scanner(System.in);
        int t = in.nextInt();
        System.out.println(getFormattedTime(t));
    }
    
    public static String getFormattedTime(int sec){
        int h = sec / 3600;
        int rest_h = sec - h * 3600;
        int m = rest_h / 60;
        int s = rest_h - m * 60; 
        return String.format("%d:%d:%d", h, m, s);
    }
    
}
/tmp/hf-datasets-cache/medium/datasets/42704881117311-config-parquet-and-info-qiankunmu-Project_CodeNet-896c9d36/hub/datasets--qiankunmu--Project_CodeNet_Python800_and_Java250/snapshots/c899fde44a77ba1cc14973ed3de064e4ff3aadc7/Project_CodeNet_Java250.tar.gz