c:
#include<stdio.h>
int main(){
int hour,min,k;
scanf("%d:%d %d",&hour,&min,&k);
min=min+k%60;//有进不进位的区别
hour=(hour+min/60+k/60)%24;
//min=(k+min)%60;
printf("%02d:%02d",hour,min%60);
c:
#include<stdio.h>
int main(){
int hour,min,k;
scanf("%d:%d %d",&hour,&min,&k);
min=min+k%60;//有进不进位的区别
hour=(hour+min/60+k/60)%24;
//min=(k+min)%60;
printf("%02d:%02d",hour,min%60);