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