import java.io.*; import java.util.*; public class Main_yukicoder651 { private static Scanner sc; private static Printer pr; private static void solve() { int a = sc.nextInt(); int m = a / 10 * 6; int h = m / 60; pr.printf("%02d:%02d\n", (10 + h) % 24, m % 60); } // --------------------------------------------------- public static void main(String[] args) { sc = new Scanner(System.in); pr = new Printer(System.out); solve(); pr.close(); sc.close(); } private static class Printer extends PrintWriter { Printer(PrintStream out) { super(out); } } }