#include<stdio.h> int main() { int m1,h,m2,x; scanf("%d:%d %d",&h,&m1,&m2); x=h*60+m1+m2; printf("%02d:%02d",x/60%24,x%60); }
#include<stdio.h> int main() { int m1,h,m2,x; scanf("%d:%d %d",&h,&m1,&m2); x=h*60+m1+m2; printf("%02d:%02d",x/60%24,x%60); }