import java.io.*; public class No525{ public static void main(String[] args) throws IOException{ String[] time = new BufferedReader(new InputStreamReader(System.in)).readLine().split(":"); int hour = Integer.parseInt(time[0]); int minute = Integer.parseInt(time[1]); secondGetupTime(hour, minute); } public static void secondGetupTime(int a, int b){ b += 5; if (b/60 != 0) a++; b %= 60; a %= 24; if(a< 10 && b < 10) System.out.println("0" + a + ":" + "0" + b); else if(a < 10) System.out.println("0"+ a + ":" + b); else if(b < 10) System.out.println(a + ":" + "0" + b); else System.out.println(a + ":" + b); } }