#include int main (void) { int x,y; scanf("%d:%d",&x,&y); y+=5; if(y>=60) { x+=1; y-=60; if(x>=24) {x-=24;} } printf("%d:%d",x,y); return 0; }