x,y; main(){ scanf("%d:%d",&x,&y); printf("%02d:%02d",(x*60+y+5)/60%24,(y+5)%60); return 0; }