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