import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); int a = in.nextInt(); int h = a/100; int m = (int)(60*(a%100)/100.0); System.out.println((10+h)+":"+String.format("%02d", m)); } }