#include using namespace std; int main() { int h,m; scanf("%d:%d",&h,&m); m+=5; if(m>59){ h=(h+1)%24; m-=60; } printf("%02d:%02d\n",h,m); return 0; }