package yukicoder; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class N525 { public static void main(String[] args)throws IOException { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); String str=br.readLine(); String[] s=str.split(":"); Integer[] i=new Integer[2]; for(int j=0;j<2;j++) { i[j]=Integer.parseInt(s[j]); } i[1]+=5; if(i[1]>=60) { i[1]-=60; i[0]+=1; if(i[0]>=24) { i[0]-=24; } } String[] ss=new String[2]; for(int j=0;j<2;j++) { int e=0; e=(i[j]<10)?1:0; ss[j]=String.valueOf(i[j]); if(e==1){ss[j]="0"+ss[j];} } System.out.println(ss[0]+":"+ss[1]); } }