#include int main(void){ int h,m; scanf("%d:%d",&h,&m); m+=5; if(m>=60){m-=60;h++;} h%=24; printf("%02d:%02d\n",h,m); }