package m.shin; import java.util.Scanner; public class Con651 { public static void main(String[] args) { Scanner s = new Scanner(System.in); int a = s.nextInt(); s.close(); int h = 10 , m = 0; m += (a % 100) * 60 / 100; h += (a / 100) + m / 60; h %= 24; m %= 60; String as = Integer.toString(h) , bs = Integer.toString(m); if(as.length() == 1){ as = "0" + as; } if(bs.length() == 1){ bs = "0" + bs; } System.out.println(as + ":" + bs); } }