#include<stdio.h> int main() { int a = 0; int b = 0; int c = 0; scanf("%d:%d %d",&a,&b,&c); a = (a + (b + c) / 60) % 24; b = (b + c) % 60; printf("%02d:%02d",a,b); return 0; }