import java.util.Scanner; public class Main{ private static Scanner sc=new Scanner(System.in); public static void main(String args[])throws Exception{ String time[]=sc.nextLine().split(":"); int h=Integer.parseInt(time[0]); int m=Integer.parseInt(time[1]); m+=5; if(m>=60){ m-=60; h++; if(h==24){ h-=24; } } time[0]=String.valueOf(h); time[1]=String.valueOf(m); for(int i=0;i