#include using namespace std; int main(){ int x,y; scanf("%d:%d",&x,&y); printf("%02d:%02d",(x+y/60)%24,(y+=5)%60); return 0; }